Vercel/README.md
2023-09-05 09:34:41 -05:00

1.6 KiB

📷 Photo Blog

This template is in BETA.

Optimizations are still being made around auth and cache behavior.

Database schema changes are expected.

Deploy with Vercel

1. Deploy to Vercel

  1. Click Deploy
  2. Add required storage (Vercel Postgres + Vercel Blob)
  3. Add environment variables
  • NEXT_PUBLIC_SITE_TITLE (e.g., My Photos)
  • NEXT_PUBLIC_SITE_DOMAIN (e.g., photos.domain.com)
  • NEXT_PUBLIC_SITE_DESCRIPTION (optional—mainly used for OG meta)

2. Setup Auth

  1. Create a Clerk account
  2. Add Clerk environment variables to your project
  3. Create an admin user
  4. Add standard environment variables:
  • NEXT_PUBLIC_CLERK_SIGN_IN_URL
  • CLERK_SECRET_KEY
  • CLERK_ADMIN_USER_ID
  1. Add your admin user id to environment variables:
  • CLERK_ADMIN_USER_ID

3. Develop locally

  1. Clone code
  2. Install dependencies pnpm i
  3. Run vc dev to utilize Vercel-stored environment variables