mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
changed output folder to build
This commit is contained in:
parent
d4a9ddecbb
commit
ca7c168af5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
build/
|
||||||
coverage/
|
coverage/
|
||||||
|
|||||||
@ -31,7 +31,7 @@ async function startServer() {
|
|||||||
// In production, we need to serve our static assets ourselves.
|
// In production, we need to serve our static assets ourselves.
|
||||||
// (In dev, Vite's middleware serves our static assets.)
|
// (In dev, Vite's middleware serves our static assets.)
|
||||||
const sirv = (await import('sirv')).default
|
const sirv = (await import('sirv')).default
|
||||||
app.use(sirv(`${root}/dist/client`))
|
app.use(sirv(`${root}/build/client`))
|
||||||
} else {
|
} else {
|
||||||
// We instantiate Vite's development server and integrate its middleware to our server.
|
// 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
|
// ⚠️ We instantiate it only in development. (It isn't needed in production and it
|
||||||
|
|||||||
@ -11,6 +11,9 @@ const config: UserConfig = {
|
|||||||
ssr: true,
|
ssr: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
build: {
|
||||||
|
outDir: './build',
|
||||||
|
},
|
||||||
ssr: { noExternal: ['vuetify'] },
|
ssr: { noExternal: ['vuetify'] },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user