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