소스 검색

fix 'non pojo' error

Olivier Massot 2 달 전
부모
커밋
4f211a4e9d
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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 },