sveltekit_shim_app_env_vars.ts view source
(entry_id: string, fresh?: boolean): Promise<EnvVarDeclarations> import {load_sveltekit_env_declarations} from '@fuzdev/gro/sveltekit_shim_app_env_vars.js'; Imports the variables declared in a project's env entry module.
The shims render static exports, so the declared names are needed before rendering -
the values aren't, those resolve when the rendered module runs.
entry_id
the env entry module
stringfresh
re-import the entry when it has changed on disk, for long-lived processes that rebuild, at the cost of a new module instance per change
booleanfalsereturns
Promise<EnvVarDeclarations>
throws
if- the entry doesn't export a `variables` object, or declares an invalid name