Explorar o código

fix cannot stringify non-POJO objects error after upgrade

Olivier Massot %!s(int64=2) %!d(string=hai) anos
pai
achega
80a58572fd
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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: '',