097a8e4e91
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
17 lines
446 B
TypeScript
17 lines
446 B
TypeScript
// This module is only used by the prerendered 500.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 "Something went wrong"
|
|
}
|
|
|
|
dynamicMessage += "+"
|
|
|
|
return dynamicMessage
|
|
}
|