-
-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Description
Which project does this relate to?
Start
Describe the bug
Drizzle-kit migrations failed because DATABASE_URL was undefined.
Workaround/Likely Cause:
The generator generates the env file as ".env.local", then uses dotenv's config() to load it. Dotenv doesnt load .env.local by default, though. Renaming .env.local to .env makes it work.
Your Example Website or App
it is not really a runtime issue but rather a project bootstrapping issue
Steps to Reproduce the Bug or Issue
- Generate a new Tanstack app (with pnpm)
- Pick drizzle with sqlite in the add-ons
- Ran migrations/tried to start the app
Expected behavior
In .env.local the sqlite file was called "dev.db", so after running drizzle-kit migrate, this file should exist and have migrations applied.
Screenshots or Videos
No response
Platform
- Router / Start Version: [e.g. 1.131.0]
- OS: macOS
- Browser: Brave
- Browser Version: doesnt apply
- Bundler: Vite
- Bundler Version: latest
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels