Skip to content

Commit

Permalink
disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogge committed Apr 4, 2024
1 parent 214015c commit fd41310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"build": "vite build && npm run server:build",
"server": "node --loader ts-node/esm ./server/index.ts",
"server:dev": "npm run server",
"server:prod": "node ./build/index.cjs",
"server:prod": "cross-env NODE_ENV=production node ./build/index.cjs",
"server:prod:ts": "cross-env NODE_ENV=production npm run server",
"server:build": "tsx scripts/buildServer/buildServer",
"storybook": "storybook dev -p 6006",
Expand Down
2 changes: 2 additions & 0 deletions frontend/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async function startServer() {
gzip: true,
}),
)
/*
// cache things for 10min
app.use(
sirv(`${root}/build/client`, {
Expand All @@ -46,6 +47,7 @@ async function startServer() {
gzip: true,
}),
)
*/
} 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
Expand Down

0 comments on commit fd41310

Please sign in to comment.