1import { uneval } from "devalue";
2import type { PageServerLoad } from "./$types";
3
4export const load: PageServerLoad = ({ platform }) => {
5 return {
6 secret: platform?.env?.FIXTURE_SECRET ?? "no-platform-env",
7 hasCtx: typeof platform?.ctx?.waitUntil === "function",
8 // exercise `devalue` (conditional-exports dep used by kit itself)
9 devalued: uneval({ n: 1 }),
10 };
11};