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:
@@ -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