Skip to content

Commit

Permalink
- implement ISR support according to: https://docs.google.com/documen…
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jan 11, 2024
1 parent 62052c3 commit b9d2cbd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,25 @@ const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
experimental: {
scrollRestoration: true,
incrementalCacheHandlerPath: atlas_cache_handler(),
isrMemoryCacheSize: 0
},
trailingSlash: true,
images: {
domains: [getWpHostname()],
},
};

function atlas_cache_handler() {
if (process.env.ATLAS_CACHE_HANDLER_ENABLED !== undefined) {
return {
incrementalCacheHandlerPath: require.resolve('./.atlas/atlas-cache-handler.js'),
isrMemoryCacheSize: 0
}
}

return undefined
}


export default withFaust( withSearch( withMarkdoc({ schemaPath: './src/markdoc' })(nextConfig) ) );

0 comments on commit b9d2cbd

Please sign in to comment.