Skip to content

tiesen243/next-safety-server-action

Repository files navigation

Next Safety Server Action

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.

Tech Stack

Getting Started

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 and POSTGRES_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.