Skip to content

Commit

Permalink
Netlify clear all caches on deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama committed Jan 8, 2024
1 parent 0107764 commit ea8fc7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# BUILD Settings:
# ##############################################################################
[build]
command = "npm run build"
command = "npm run build:netlify"
publish = ".next"

# PLUGINS
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const nextConfig = {
experimental: {
logging: 'verbose',
isrMemoryCacheSize: 0, // disable ISR cache in memory and rely on file system cache.
},
images: {
remotePatterns: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"build:netlify": "rm -rf .next && next build",
"start": "next start",
"lint": "next lint",
"hps": "local-ssl-proxy --cert ./dev/localhost.pem --key ./dev/localhost-key.pem",
Expand Down

0 comments on commit ea8fc7a

Please sign in to comment.