فهرست منبع

fix cannot stringify non-POJO objects error after upgrade

Olivier Massot 2 سال پیش
والد
کامیت
80a58572fd
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  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: '',