| 1 | import { uneval } from "devalue"; |
| 2 | import type { PageServerLoad } from "./$types"; |
| 3 | |
| 4 | export 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 | }; |