From 8d62c2add28ee5d15beb218296f67b47d9578305 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 19 Oct 2023 15:15:00 +0100 Subject: [PATCH] test: update prerender test --- test/fixtures/basic/nuxt.config.ts | 3 +++ test/fixtures/basic/plugins/prerender.server.ts | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 test/fixtures/basic/plugins/prerender.server.ts diff --git a/test/fixtures/basic/nuxt.config.ts b/test/fixtures/basic/nuxt.config.ts index 3c1193ad16..5ff07c9e0b 100644 --- a/test/fixtures/basic/nuxt.config.ts +++ b/test/fixtures/basic/nuxt.config.ts @@ -47,6 +47,9 @@ export default defineNuxtConfig({ } }, routeRules: { + // TODO: update this test + // pretend to be fully prerendered + '/**': { prerender: true }, '/route-rules/spa': { ssr: false }, '/hydration/spa-redirection/**': { ssr: false }, '/no-scripts': { experimentalNoScripts: true } diff --git a/test/fixtures/basic/plugins/prerender.server.ts b/test/fixtures/basic/plugins/prerender.server.ts deleted file mode 100644 index 9eec0f831c..0000000000 --- a/test/fixtures/basic/plugins/prerender.server.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default defineNuxtPlugin((nuxtApp) => { - // Pretend to be prerendered - nuxtApp.payload.prerenderedAt = Date.now() -})