Skip to content

amitleuva1987/full-stack-nextjs-with-prisma

Repository files navigation

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

How to deploy over aws using serverless

To deploy over aws, refer "aws-version" branch. Main branch works with "Vercels"

Open the next.config.js file and fill the environment variables.

NEXTAUTH_URL:'******',
GIT_ID:"*******",
GIT_SECRET:"*******",
EMAIL_SERVER:"*********",
EMAIL_FROM:"********",
DATABASE_URL:"********"

then run below commands

npm install
npx prisma generate
npm run build
serverless

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.