Explorar o código

fix 'non pojo' error

Olivier Massot hai 2 meses
pai
achega
4f211a4e9d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      nuxt.config.ts

+ 6 - 0
nuxt.config.ts

@@ -26,6 +26,12 @@ if (process.env.NUXT_ENV === 'dev') {
  */
 export default defineNuxtConfig({
   ssr: true,
+
+  experimental: {
+    // Fix the 'Cannot stringify non POJO' bug
+    // @see https://github.com/nuxt/nuxt/issues/20787
+    renderJsonPayloads: false,
+  },
   routeRules: {
     // all routes will be generated at build time and cached permanently
     '/**': { prerender: true },