This commit implements the core admin dashboard functionality including NextAuth authentication, Cloudflare D1 database integration with complete schema, and Cloudflare R2 file upload system for portfolio images. Features include artist management, appointment scheduling, and data migration capabilities.
39 lines
889 B
TOML
39 lines
889 B
TOML
name = "united-tattoo"
|
|
compatibility_date = "2024-09-23"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
main = ".open-next/worker.js"
|
|
|
|
[assets]
|
|
directory = ".open-next/assets"
|
|
binding = "ASSETS"
|
|
|
|
# D1 Database binding
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "united-tattoo"
|
|
database_id = "5d133d3b-680f-4772-b4ea-594c55cd1bd5"
|
|
|
|
# R2 bucket binding
|
|
[[r2_buckets]]
|
|
binding = "R2_BUCKET"
|
|
bucket_name = "united-tattoo"
|
|
|
|
# R2 bucket for OpenNext incremental cache
|
|
[[r2_buckets]]
|
|
binding = "NEXT_INC_CACHE_R2_BUCKET"
|
|
bucket_name = "united-tattoo-inc-cache"
|
|
|
|
[[services]]
|
|
binding = "WORKER_SELF_REFERENCE"
|
|
service = "united-tattoo"
|
|
|
|
# Environment variables for production
|
|
[env.production.vars]
|
|
NEXTAUTH_URL = "https://your-domain.com"
|
|
NODE_ENV = "production"
|
|
|
|
# Environment variables for preview
|
|
[env.preview.vars]
|
|
NEXTAUTH_URL = "https://your-preview-domain.pages.dev"
|
|
NODE_ENV = "development"
|