import { n as HTTPError, o as toRequest } from "../_libs/h3+rou3+srvx.mjs";
//#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.3.5_rollup@4.60.1_vite@8.0._aab64657a678a0edb1746e2c859bb8b1/node_modules/nitro/dist/runtime/vite.mjs
function fetchViteEnv(viteEnvName, input, init) {
	const viteEnv = (globalThis.__nitro_vite_envs__ || {})[viteEnvName];
	if (!viteEnv) throw HTTPError.status(404);
	return Promise.resolve(viteEnv.fetch(toRequest(input, init)));
}
//#endregion
//#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.3.5_rollup@4.60.1_vite@8.0._aab64657a678a0edb1746e2c859bb8b1/node_modules/nitro/dist/runtime/internal/vite/ssr-renderer.mjs
/** @param {{ req: Request }} HTTPEvent */
function ssrRenderer({ req }) {
	return fetchViteEnv("ssr", req);
}
//#endregion
export { ssrRenderer as default };
