- Rewrite admin-session.ts to use Web Crypto API (crypto.subtle) instead of Node.js crypto module, ensuring compatibility with Edge Runtime in middleware - Add ADMIN_SESSION_SECRET to .env.example - Build passes with zero warnings
25 lines
701 B
Plaintext
25 lines
701 B
Plaintext
# Clerk
|
|
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_...
|
|
CLERK_SECRET_KEY=sk_test_...
|
|
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
|
|
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
|
|
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL=/
|
|
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL=/
|
|
|
|
# Database
|
|
DATABASE_URL=postgresql://postgres:postgres@db:5432/monuments
|
|
POSTGRES_PASSWORD=postgres
|
|
|
|
# Contabo S3
|
|
S3_ENDPOINT=https://eu2.contabostorage.com
|
|
S3_REGION=eu-2
|
|
S3_ACCESS_KEY_ID=your-access-key
|
|
S3_SECRET_ACCESS_KEY=your-secret-key
|
|
S3_BUCKET_NAME=monuments-images
|
|
|
|
# App
|
|
NEXT_PUBLIC_APP_URL=https://testbed.mk
|
|
NEXT_PUBLIC_APP_DOMAIN=testbed.mk
|
|
|
|
# Admin
|
|
ADMIN_SESSION_SECRET=your-random-64-char-secret-here-change-it-in-production |