Parcourir la source

fix cannot stringify non-POJO objects error after upgrade

Olivier Massot il y a 2 ans
Parent
commit
80a58572fd
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      nuxt.config.ts

+ 5 - 0
nuxt.config.ts

@@ -17,6 +17,11 @@ 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
+    },
     runtimeConfig: {
         // Private config that is only available on the server
         env: '',