test: update prerender test

This commit is contained in:
Daniel Roe 2023-10-19 15:15:00 +01:00
parent 91c62d6c3e
commit 8d62c2add2
2 changed files with 3 additions and 4 deletions

View File

@ -47,6 +47,9 @@ export default defineNuxtConfig({
} }
}, },
routeRules: { routeRules: {
// TODO: update this test
// pretend to be fully prerendered
'/**': { prerender: true },
'/route-rules/spa': { ssr: false }, '/route-rules/spa': { ssr: false },
'/hydration/spa-redirection/**': { ssr: false }, '/hydration/spa-redirection/**': { ssr: false },
'/no-scripts': { experimentalNoScripts: true } '/no-scripts': { experimentalNoScripts: true }

View File

@ -1,4 +0,0 @@
export default defineNuxtPlugin((nuxtApp) => {
// Pretend to be prerendered
nuxtApp.payload.prerenderedAt = Date.now()
})