We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bc7d3 commit 07136d8Copy full SHA for 07136d8
1 file changed
src/runtime/vite-runtime.ts
@@ -14,7 +14,7 @@ export function fetchViteEnv(
14
init?: RequestInit
15
) {
16
const envs = globalThis.__nitro_vite_envs__ || {};
17
- const viteEnv = envs[viteEnvName];
+ const viteEnv = envs[viteEnvName as keyof typeof envs] as FetchableEnv;
18
if (!viteEnv) {
19
throw HTTPError.status(404);
20
}
0 commit comments