nondeterminism-404.ts — astro Source File
Architecture documentation for nondeterminism-404.ts, a typescript file in the astro codebase.
Entity Profile
Source Code
// This module is only used by the prerendered 404.astro.
// It exhibits different behavior if it's called more than once,
// which is detected by a test and interpreted as a failure.
let usedOnce = false
let dynamicMessage = "Page was not prerendered"
export default function () {
if (usedOnce === false) {
usedOnce = true
return "Page does not exist"
}
dynamicMessage += "+"
return dynamicMessage
}
Source
Frequently Asked Questions
What does nondeterminism-404.ts do?
nondeterminism-404.ts is a source file in the astro codebase, written in typescript.
Where is nondeterminism-404.ts in the architecture?
nondeterminism-404.ts is located at packages/integrations/node/test/fixtures/prerender-404-500/src/nondeterminism-404.ts (directory: packages/integrations/node/test/fixtures/prerender-404-500/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free