-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
What version of astro are you using?
1.5.0
Are you using an SSR adapter? If so, which one?
@astrojs/netlify/edge-functions
What package manager are you using?
npm
What operating system are you using?
Linux
Describe the Bug
Using import.meta.env with ssr and @astrojs/netlify/edge-functions doesn't work.
For example if you have some code that references import.meta.env.FOO.
The generated code has calls to process.env.FOO but to look up environment values in the netlify edge runtime it needs to call Deno.env.get("FOO").
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-gubo61?file=src/pages/index.astro
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)