Closed matthewp closed 2 days ago
Latest commit: 2ae06b195e618c368cce3090a874908bfa86a5e0
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Comparing env-no-throw
(2ae06b1) with main
(46f6b38)
✅ 6
untouched benchmarks
More stuff can be removed:
astro:env
data to the ssr manifest I believe@florian-lefebvre made the changes you suggested. We're still doing validation though, @ematipico is going to work on another approach that doesn't rely on setGetEnv
.
Changes
getEnv
.astro:env
be dependent on timing; if some code runs beforesetGetEnv
has been called it currently could result in incorrect or missing environment variables.process.env[key]
approach. Since this is what most adapters need anyways, we don't have to worry about bundling causing issues of code executing in unwanted order.setGetEnv
, and it already has the constraint of not allowing vars to be grabbed at the top level.Testing
Docs
N/A, bug fix