@blackseinastro v6一个环境变量的break change 后端谨慎使用import.meta.env 中发帖

之前升级v6没注意这个,结果发现数据库密码内联到了dist里,非常的诧异。结果发现是v6改了行为: 



In Astro 5.13, the experimental.staticImportMetaEnv flag was introduced to update the behavior when accessing import.meta.env directly to align with Vite’s handling of environment variables and ensures that import.meta.env values are always inlined.
In Astro 5.x, non-public environment variables were replaced by a reference to process.env. Add...