* docs: add database migration audit and preview deployment guide * feat: add migration baseline for db:push-bootstrapped databases * feat: add shares and usage_events tables with indexes * refactor: improve db migration baseline detection and logging * fix: make postgres url optional in drizzle config and add db check to ci * docs: clarify db branching and format code * refactor: use db:generate script instead of direct drizzle-kit * docs: add CI/script execution rules to AGENTS.md * feat: add database table existence check in migration baseline * update ci script --------- Co-authored-by: nicoalbanese <49612682+nicoalbanese@users.noreply.github.com> Co-authored-by: nicoalbanese <gcalbanese96@gmail.com>
1.8 KiB
1.8 KiB
This is a Next.js project bootstrapped with create-next-app.
Environment Variables
The following environment variables are required:
| Variable | Description |
|---|---|
POSTGRES_URL |
PostgreSQL connection string. Required for builds — migrations run automatically during next build via lib/db/migrate.ts. Preview deployments use a Neon branch database; production uses the main database. |
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
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.