Skip to content

Commit

Permalink
remove next-offline in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hhoomph committed Feb 7, 2020
1 parent 96aac02 commit 89484ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports = {
apps: [
{
name: 'Qarun',
script: './server.js',
name: "Qarun",
script: "./server.js",
watch: true,
env: {
NODE_ENV: 'development'
NODE_ENV: "development"
},
env_production: {
NODE_ENV: 'production'
NODE_ENV: "production"
},
instances: 0,
exec_mode: 'cluster'
exec_mode: "cluster"
}
]
};
Expand Down
9 changes: 5 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,22 @@ module.exports = withPlugins([withSass, withSize, withOffline], {
// cacheName: "offlineCache",
// expiration: {
// maxEntries: 50,
// maxAgeSeconds: 1 * 60 * 60,
// maxAgeSeconds: 30 * 24 * 60 * 60, // 1 month
// purgeOnQuotaError: true
// }
// }
// }
// ]
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: "NetworkFirst",
// urlPattern: /^https?.*/,
urlPattern: /.*\.(?:png|jpg|jpeg|svg|gif)/,
handler: "image-cache",
options: {
cacheName: "https-calls",
networkTimeoutSeconds: 15,
expiration: {
maxEntries: 100,
maxEntries: 300,
maxAgeSeconds: 1 * 60 * 60 // 1 hour
},
cacheableResponse: {
Expand Down

0 comments on commit 89484ef

Please sign in to comment.