chore(dx/server): set up cache for Vite

This commit is contained in:
Elian Doran 2025-08-31 18:28:20 +03:00
parent cc474f39d8
commit 1dcb3b1529
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,5 +1,8 @@
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
/.cache
!/.cache/vite/.gitkeep
# compiled output
dist
tmp

View File

@ -23,6 +23,7 @@ async function register(app: express.Application) {
if (isDev) {
const vite = await createViteServer({
cacheDir: path.join(srcRoot, "../../.cache/vite"),
base: `/${assetUrlFragment}/`,
root: path.join(srcRoot, "../client"),
plugins: [