From 3c3cc0c8f930afb9da0079c09c82077402ce202b Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Fri, 12 Jan 2024 16:50:32 -0700 Subject: [PATCH] - revert next.config.mjs --- next.config.mjs | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index bf95845..1527bce 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -2,35 +2,16 @@ import { withFaust, getWpHostname } from '@faustwp/core'; import withMarkdoc from '@markdoc/next.js' import withSearch from './markdoc/search.mjs' -function experimentalConfig() { - - const experimental = { - scrollRestoration: true, - } - - if (process.env.ATLAS_CACHE_HANDLER_ENABLED === undefined) { - const atlasExperimentalOptions = { ...experimental, ...{ - incrementalCacheHandlerPath: require.resolve('./.atlas/atlas-cache-handler.js'), - isrMemoryCacheSize: 0 - }} - console.log( { atlasExperimentalOptions }) - return atlasExperimentalOptions - } - - return experimental -} - const nextConfig = { reactStrictMode: true, pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'], - experimental: experimentalConfig(), + experimental: { + scrollRestoration: true, + }, trailingSlash: true, images: { domains: [getWpHostname()], }, }; - - - -export default withFaust( withSearch( withMarkdoc({ schemaPath: './src/markdoc' })(nextConfig) ) ); +export default withFaust( withSearch( withMarkdoc({ schemaPath: './src/markdoc' })(nextConfig) ) ); \ No newline at end of file