Replies: 1 comment 9 replies
-
|
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This does not seem to be documented. But I can't figure out how to access environment variables inside data files.
Based on looking through issues etc, it seems we should be able to access them using
import.meta.envbut it's causing an error.Here's a minimal reproduction that shows the error:
https://stackblitz.com/edit/vite-rwunk9mm?file=docs%2F.vitepress%2Fdata%2Ftest.data.js
Beta Was this translation helpful? Give feedback.
All reactions