-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
What version of HonoX are you using?
0.1.40
What steps can reproduce the bug?
Create .env.local with the following contents:
DB_PASSWORD="secret"
Create simple console.log in / route like this:
console.log(import.meta.env.DB_PASSWORD)
What is the expected behavior?
secret gets printed.
What do you see instead?
undefined gets printed.
Additional information
VITE_ prefixed environment variables are created to be exposed in client code so prefixing DB_PASSWORD with VITE_ would be a bad idea but in this case I have to. So I guess it’s bug?
Metadata
Metadata
Assignees
Labels
No labels