This is a Next.js project bootstrapped with create-next-app
.
If you are on the MAIN branch then use the env value called "DATABASE_URL" otherwise use "DEV_DATABASE_URL" for the DEVELOP branch.
First, npm i or yarn install
Second,
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
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!
pscale connect --port 3306
pscale connect spudify dev --port 3306
https://planetscale.com/docs/reference/shell.
pscale shell <DATABASE_NAME> <BRANCH_NAME>
npx prisma studio --port 5555
npx prisma format
npx prisma generate
npx prisma db push