8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nuxt.options.pages
1 parent 66f3d93 commit fa480e0Copy full SHA for fa480e0
packages/nuxt/src/pages/module.ts
@@ -97,6 +97,12 @@ export default defineNuxtModule({
97
}
98
options.enabled = await isPagesEnabled()
99
nuxt.options.pages = options
100
+ // For backwards compatibility with `@nuxtjs/i18n` and other modules that serialize `nuxt.options.pages` directly
101
+ // TODO: remove in a future major
102
+ Object.defineProperty(nuxt.options.pages, 'toString', {
103
+ enumerable: false,
104
+ get: () => () => options.enabled,
105
+ })
106
107
if (nuxt.options.dev && options.enabled) {
108
// Add plugin to check if pages are enabled without NuxtPage being instantiated
0 commit comments