-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
When creating a project with environment variables, the demoUrl returned by v0.chats.create() doesn't have access to those env vars.
Repro:
const project = await v0.projects.create({
name: 'Test',
environmentVariables: [
{ key: 'NEXT_PUBLIC_API_KEY', value: 'test_123' }
]
})
const chat = await v0.chats.create({
projectId: project.id,
message: 'console.log process.env values'
})
// Browser console on demoUrl shows:
// NEXT_PUBLIC_API_KEY: undefinedVerified:
- Env vars ARE stored:
v0.projects.findEnvVars()returns them - Env vars work in
v0.deveditor - Env vars are undefined in
demoUrl - Tested with
v0-clonetepmlate, same issue
Impact:
Breaks apps that need env vars to run. Example: Clerk auth shows blank screen because NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY is undefined.
kostiushko-vladSky-FE and tea-artist
Metadata
Metadata
Assignees
Labels
No labels