Skip to content

Commit 5ee7ce8

Browse files
committed
sigh
1 parent c5e5989 commit 5ee7ce8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/kit/test/apps/options/source/hooks.server.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { env } from '$env/dynamic/private';
22

33
// this verifies that dynamic env vars can be read during analysis phase
44
// (it would fail if this app contained prerendered routes)
5+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
56
const FOO = env.FOO;
67

78
/** @type {import('@sveltejs/kit').Handle} */

packages/kit/types/index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2185,11 +2185,16 @@ declare module '__sveltekit/environment' {
21852185
* SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
21862186
*/
21872187
export const building: boolean;
2188+
/**
2189+
* True during prerendering, false otherwise.
2190+
*/
2191+
export const prerendering: boolean;
21882192
/**
21892193
* The value of `config.kit.version.name`.
21902194
*/
21912195
export const version: string;
21922196
export function set_building(): void;
2197+
export function set_prerendering(): void;
21932198
}
21942199
21952200
/** Internal version of $app/paths */

0 commit comments

Comments
 (0)