-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astro:env can't find secrets in middleware #12324
astro:env can't find secrets in middleware #12324
Comments
I don't know for sure in what version it was introduced but in the meantime, downgrade a few patches until it works. We are working on a fix but it's not easy so I have no ETA atm |
it works in 4.16.5 BTW I tested with |
Yeah, I tried it as well and I was very disappointed to see my attempt did not work at all :/. @ematipico is probably going to pick it up. Thanks for confirming the version where it works! |
can confirm 4.16.9 works |
Yeah we reverted, we're going to do another attempt this/next week |
@JLarky what adapter were you using? |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using a secret inside a middleware, it now fails
npm run build
npm run preview
What's the expected result?
Should still work
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-8b8hjn
Participation
The text was updated successfully, but these errors were encountered: