- Add this to .env file
DATABASE_URL="http://localhost:8080" AUTH_TOKEN="randomwords"
-
To start the DB run: "npm run db" or if you want to specify the name of the db file "turso dev --db-file dev.db"
-
Start the app in dev mode by using "npm run dev"
- To run migration you need to have the DB started (previous section).
- If the db is running you need to use "npx drizzle-kit push" or "npm run migration-migration"
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.