Skip to content

Commit

Permalink
- revert next.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jan 12, 2024
1 parent 2335f65 commit 3c3cc0c
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) );

1 comment on commit 3c3cc0c

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Atlas environment:

App Environment URL Build
acf.wpgraphql.com main https://hb…wered.com ✅ (logs)

Learn more about building on Atlas in our documentation.

Please sign in to comment.