File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { env } from '$env/dynamic/private';
2
2
3
3
// this verifies that dynamic env vars can be read during analysis phase
4
4
// (it would fail if this app contained prerendered routes)
5
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
6
const FOO = env . FOO ;
6
7
7
8
/** @type {import('@sveltejs/kit').Handle } */
Original file line number Diff line number Diff line change @@ -2185,11 +2185,16 @@ declare module '__sveltekit/environment' {
2185
2185
* SvelteKit analyses your app during the ` build ` step by running it. During this process, ` building ` is ` true `. This also applies during prerendering.
2186
2186
*/
2187
2187
export const building: boolean;
2188
+ /**
2189
+ * True during prerendering, false otherwise.
2190
+ */
2191
+ export const prerendering: boolean;
2188
2192
/**
2189
2193
* The value of ` config . kit . version . name `.
2190
2194
*/
2191
2195
export const version: string;
2192
2196
export function set_building(): void;
2197
+ export function set_prerendering(): void;
2193
2198
}
2194
2199
2195
2200
/** Internal version of $app/paths */
You can’t perform that action at this time.
0 commit comments