Blankeos / vike-hono-env-bug

🤕 Vike Bug Repro with Leaked Env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 <div>import.meta.env.DATABASE_URL</div> will throw this error.

Requirements

  • Bun v1.1.8

Steps

  1. Clone
git clone <repo>
  1. Install
bun install
  1. Run
bun dev

About

🤕 Vike Bug Repro with Leaked Env


Languages

Language:TypeScript 100.0%