Skip to content

Commit

Permalink
fix: try to fix cache problem (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
HACO8888 authored Dec 21, 2024
2 parents d5c2027 + d810b51 commit a1dad34
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ const nextConfig = {
},
],
},
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Cache-Control",
value: "no-cache, no-store, must-revalidate",
},
],
},
];
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if (!isServer) {
config.output.filename = "static/chunks/[name].js";
Expand Down

0 comments on commit a1dad34

Please sign in to comment.