Trusting proxy in production.
This commit is contained in:
parent
c04da18094
commit
12fa3a9fe5
|
@ -83,6 +83,8 @@ export default async function initServer() {
|
||||||
|
|
||||||
// Vite integration
|
// Vite integration
|
||||||
if (isProduction) {
|
if (isProduction) {
|
||||||
|
app.enable('trust proxy');
|
||||||
|
|
||||||
// In production, we need to serve our static assets ourselves.
|
// In production, we need to serve our static assets ourselves.
|
||||||
// (In dev, Vite's middleware serves our static assets.)
|
// (In dev, Vite's middleware serves our static assets.)
|
||||||
const sirv = (await import('sirv')).default;
|
const sirv = (await import('sirv')).default;
|
||||||
|
|
Loading…
Reference in New Issue