Skip to content

Commit

Permalink
fix(nuxt-module): ssg mode not working after domains refactor (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick authored Sep 16, 2021
1 parent 277c86f commit 0803a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt-module/plugins/domain.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default async ({ app, route, req }, inject) => {
if (process.client) {
hostname = window.location.hostname;
pathname = window.location.pathname;
} else {
} else if (!process.static) {
const detectedHost =
req.headers["x-forwarded-host"] || req.headers.host;
hostname = Array.isArray(detectedHost) ? detectedHost[0] : detectedHost;
Expand Down

0 comments on commit 0803a18

Please sign in to comment.