mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
test: update prerender test
This commit is contained in:
parent
91c62d6c3e
commit
8d62c2add2
3
test/fixtures/basic/nuxt.config.ts
vendored
3
test/fixtures/basic/nuxt.config.ts
vendored
@ -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 }
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
export default defineNuxtPlugin((nuxtApp) => {
|
|
||||||
// Pretend to be prerendered
|
|
||||||
nuxtApp.payload.prerenderedAt = Date.now()
|
|
||||||
})
|
|
Loading…
Reference in New Issue
Block a user