https://github.com/blankeos/vike-hono-env-bug
🤕 Vike Bug Repro with Leaked Env
https://github.com/blankeos/vike-hono-env-bug
Last synced: about 1 year ago
JSON representation
🤕 Vike Bug Repro with Leaked Env
- Host: GitHub
- URL: https://github.com/blankeos/vike-hono-env-bug
- Owner: Blankeos
- Created: 2024-05-14T14:02:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T14:02:47.000Z (about 2 years ago)
- Last Synced: 2025-02-13T08:41:22.135Z (over 1 year ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vike Hono Env
This is a bug repro. I just commited the `.env` for convenience.
**Bug summary:**
1. Environment variables are being displayed on the client-side?
2. When I write the environment variable as a "text" (not a variable), it fails to render the page/throws a roll-up error. You can see it in the console when you visit the page.
- For instance: Writing `
import.meta.env.DATABASE_URL` will throw this error.
## Requirements
- Bun v1.1.8
## Steps
1. Clone
```sh
git clone
```
2. Install
```sh
bun install
```
4. Run
```sh
bun dev
```