consider SERVER_NAME in allowedHosts
This commit is contained in:
parent
80ecfd6747
commit
0ccfdbb78e
2 changed files with 15 additions and 5 deletions
|
|
@ -25,6 +25,7 @@ export default defineConfig({
|
|||
changeOrigin: true,
|
||||
xfwd: true
|
||||
},
|
||||
}
|
||||
},
|
||||
allowedHosts: (process.env.SERVER_NAME||'').split(':')
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue