Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

komzweb/nextjs-server-actions-form

Repository files navigation

Next.js Server Actions Form

This example is based on Forms with Next.js and Server Actions published by Next.js, with the following additions:

Run locally

First, create .env.local in the root and set your Vercel Postgres secrets to it:

POSTGRES_URL="************"
POSTGRES_PRISMA_URL="************"
POSTGRES_URL_NON_POOLING="************"
POSTGRES_USER="************"
POSTGRES_HOST="************"
POSTGRES_PASSWORD="************"
POSTGRES_DATABASE="************"

Then, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

About

Form example using Next.js (Server Actions), Vercel Postgres, and shadcn/ui

Topics

Resources

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /