Browse Source

fix cannot stringify non-POJO objects error after upgrade

Olivier Massot 2 năm trước cách đây
mục cha
commit
80a58572fd
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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: '',