0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 08:58:11 +00:00

vite middlewares only in dev

This commit is contained in:
Víctor Losada Hernández
2026-02-02 00:30:57 +01:00
parent 39a7cdb63d
commit cd5de2c2a1

View File

@@ -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);