From da3bdb9c2a45470a3d0c1afeac308121c1548333 Mon Sep 17 00:00:00 2001 From: Dylan Jay Date: Wed, 20 Nov 2024 09:55:37 +0700 Subject: [PATCH] try prerender again --- examples/nuxt-blog-starter/nuxt.config.ts | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/nuxt-blog-starter/nuxt.config.ts b/examples/nuxt-blog-starter/nuxt.config.ts index 8210e8f..c2cb545 100644 --- a/examples/nuxt-blog-starter/nuxt.config.ts +++ b/examples/nuxt-blog-starter/nuxt.config.ts @@ -10,20 +10,20 @@ export default defineNuxtConfig({ ssr: true, $env: { edit: { - ssr: true - }, - routeRules: { - "/*": { - prerender: false, - //redirect: '/index', - cors: true, - headers: { - "origin": "https://hydra.pretagov.com", - "content-security-policy": "img-src: 'self', 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'; connect-src: 'self', 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'; 'frame-ancestors': '*';", - "cross-prigin-resource-policy": "cross-origin" + ssr: false, + routeRules: { + "/*": { + prerender: true, + //redirect: '/index', + cors: true, + headers: { + "origin": "https://hydra.pretagov.com", + "content-security-policy": "img-src: 'self', 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'; connect-src: 'self', 'data:', 'https://hydra.pretagov.com', 'https://hydra-api.pretagov.com'; 'frame-ancestors': '*';", + "cross-prigin-resource-policy": "cross-origin" + } } } - } + }, }, routeRules: { // "/_ipx/_/https%3A//*": {