In one of your pages or API Routes you did export const config
with an invalid value.
The page's config must be an object initialized directly when being exported and not modified dynamically. The config object must only contains static constant literals without expressions.
This is not allowed
export const config = 'hello world'
This is not allowed
const config = {}
config.amp = true
This is not allowed
export const config = {
amp: 1 + 1 > 2,
}
This is not allowed
export { config } from '../config'
This is not allowed
export const config = {
runtime: `n${'od'}ejs`,
}
This is allowed
export const config = { amp: true }
This is allowed
export const config = {
runtime: 'nodejs',
}
This is allowed
export const config = {
runtime: `nodejs`,
}