mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 23:16:54 +00:00
vite middlewares only in dev
This commit is contained in:
1 parent
39a7cdb63d
commit
cd5de2c2a1
1 file changed
+3
-1
+3
-1
@@ -56,7 +56,9 @@ export default async function createApp(vite) {
|
||||
|
||||
app.set('trust proxy', 1 /* number of proxies between user and server */);
|
||||
|
||||
app.use(vite.middlewares);
|
||||
if (vite) {
|
||||
app.use(vite.middlewares);
|
||||
}
|
||||
|
||||
app.use('/', serveCompressedStaticAssets('build'));
|
||||
app.use(contentNegotiation);
|
||||
|
||||
Reference in new issue
Block a user