fix(vite): .env files not being loaded (#3416)
Fixes https://github.com/denoland/fresh/issues/3364
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export const handler = () => {
|
||||
const json = {
|
||||
MY_ENV: Deno.env.get("MY_ENV"),
|
||||
VITE_MY_ENV: Deno.env.get("VITE_MY_ENV"),
|
||||
MY_LOCAL_ENV: Deno.env.get("MY_LOCAL_ENV"),
|
||||
VITE_MY_LOCAL_ENV: Deno.env.get("VITE_MY_LOCAL_ENV"),
|
||||
};
|
||||
|
||||
return Response.json(json);
|
||||
};
|
||||
Reference in New Issue
Block a user