Closed mariusbolik closed 1 month ago
Could you take a look at this? @florian-lefebvre :)
Hi! astro:env/*
is a virtual module so it can only be accessed in a context where it's loaded by vite. It's not the case of the astro config file, use process.env.X
instead.
This has been asked several times but idk what we plan to do yet, feel free to subscribe to https://github.com/withastro/roadmap/pull/894 as we'll talk about it next week
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I installed the sentry astro integration. The integration needs an auth token in its configuration. But doen't seem to be possible to use
astro:env
in theastro.config.mjs
file.This is my config:
This is the error message:
What's the expected result?
It should be possible to use secrets in
astro.config.mjs
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-bs2nvk?file=astro.config.mjs
Participation