AliceZ413 / az-dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Next.js project bootstrapped with create-next-app.

开始

运行服务器(dev)

npm run dev
# or
yarn dev

打开http://localhost:3000

生成prisma client

通过已有的db生成prisma schema

npx prisma db pull

prisma schema同步到db

npx prisma db push

保存prisma schema(根目录/prisma/schema.prisma)

npx prisma generate

migrate(开发环境)

npx prisma migrate dev

migrate(生产环境)

npx prisma migrate deploy

studio 当前项目数据库管理页面

npx prisma studio

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.

踩坑注意

  1. middleware.js(.ts),应该在项目根目录,路径{root}/middleware.js(.ts),但如果项目使用了src文件夹,应该放入src的路径上,{root}/src/middleware.js(.ts)

About


Languages

Language:JavaScript 75.4%Language:SCSS 15.2%Language:CSS 9.4%