This is a Next.js project bootstrapped with create-t3-app
. It includes a simple example of how to use next safe action with Lucia and Prisma.
First, clone the repository:
git clone git@github.com:tiesen243/next-safe-action.git
Then, install the dependencies:
bun install
Next, create a .env
file in the root of the project and add the following environment variables:
Note: You can get the
POSTGRES_PRISMA_URL
andPOSTGRES_URL_NON_POOLING
via vercel
cp .env.example .env
Then, run the development server:
bun db:push
bun dev
Open http://localhost:3000 with your browser to see the result.