errors/invalid-page-config.mdx
In one of your pages or API Routes, you used export const config with an invalid value.
config must be an object initialized directly when being exported and not modified dynamically.config object must only contain static constant literals without expressions.// `config` should be an object
export const config = 'hello world'
export const config = {}
// `config.runtime` contains a dynamic expression
export const config = {
runtime: `node${'js'}`,
}
export const config = {
runtime: 'nodejs',
}
export const config = {
runtime: `edge`,
}
// Re-exported `config` is not allowed
export { config } from '../config'
export const config = {}