Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
update var name
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 15, 2022
1 parent b3ebbf1 commit c7df6cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/core/runtime/nitro/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const getSPARenderer = lazyCachedFunction(async () => {
const PAYLOAD_CACHE = process.env.prerender ? new Map() : null // TODO: Use LRU cache
const PAYLOAD_URL_RE = /\/_payload(\.[a-zA-Z0-9]+)?.js(\?.*)?$/

const SPA_ROUTES = new Set(['/index.html', '/200.html', '/404.html'])
const PRERENDER_NO_SSR_ROUTES = new Set(['/index.html', '/200.html', '/404.html'])

export default defineRenderHandler(async (event) => {
// Whether we're rendering an error page
Expand Down Expand Up @@ -135,7 +135,7 @@ export default defineRenderHandler(async (event) => {
noSSR:
!!(process.env.NUXT_NO_SSR) ||
!!(event.req.headers['x-nuxt-no-ssr']) ||
(process.env.prerender ? SPA_ROUTES.has(url) : false),
(process.env.prerender ? PRERENDER_NO_SSR_ROUTES.has(url) : false),
error: !!ssrError,
nuxt: undefined!, /* NuxtApp */
payload: (ssrError ? { error: ssrError } : {}) as NuxtSSRContext['payload']
Expand Down

0 comments on commit c7df6cb

Please sign in to comment.