diff --git a/.gitignore b/.gitignore index 9ebfc2d..eb7b4d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules/ -dist/ +build/ coverage/ diff --git a/server/index.ts b/server/index.ts index cef95b0..4b897e8 100644 --- a/server/index.ts +++ b/server/index.ts @@ -31,7 +31,7 @@ async function startServer() { // 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 - app.use(sirv(`${root}/dist/client`)) + app.use(sirv(`${root}/build/client`)) } else { // We instantiate Vite's development server and integrate its middleware to our server. // ⚠️ We instantiate it only in development. (It isn't needed in production and it diff --git a/vite.config.ts b/vite.config.ts index 10d9c66..b720d7f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,6 +11,9 @@ const config: UserConfig = { ssr: true, }), ], + build: { + outDir: './build', + }, ssr: { noExternal: ['vuetify'] }, }