From ca7c168af5f26539c8fa44af603fd8afb14c102d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 17 Nov 2023 10:31:16 +0100 Subject: [PATCH] changed output folder to build --- .gitignore | 2 +- server/index.ts | 2 +- vite.config.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) 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'] }, }