Skip to content

Commit 07136d8

Browse files
committed
chore: fix types
1 parent 79bc7d3 commit 07136d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runtime/vite-runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function fetchViteEnv(
1414
init?: RequestInit
1515
) {
1616
const envs = globalThis.__nitro_vite_envs__ || {};
17-
const viteEnv = envs[viteEnvName];
17+
const viteEnv = envs[viteEnvName as keyof typeof envs] as FetchableEnv;
1818
if (!viteEnv) {
1919
throw HTTPError.status(404);
2020
}

0 commit comments

Comments
 (0)