Setup Guide
Environment variables needed for full functionality. Week 1 works entirely with mock data.
Week 1 Scaffold Mode
All features work with mock data. No environment variables required yet. Add them as you progress through each week.
Environment Variables
Add these in the Vars section of the sidebar when ready.
NEXT_PUBLIC_URLWeek 2Your app's public URL for Stripe redirect URLs
Example:
https://reliquary.vercel.appUsed in:
- • Stripe checkout success/cancel redirects
STRIPE_SECRET_KEYWeek 2Stripe secret key for creating checkout sessions
Example:
sk_test_...Used in:
- • Creating checkout sessions
- • Processing payments
STRIPE_WEBHOOK_SECRETWeek 2Stripe webhook signing secret for verifying events
Example:
whsec_...Used in:
- • Webhook signature verification
DATABASE_URLWeek 3Database connection string for storing jobs and artifacts
Example:
postgresql://...Used in:
- • Job storage
- • Artifact metadata
- • User tracking
BLOB_STORAGE_URLWeek 3S3/R2 compatible storage for images and PDFs
Example:
https://s3.amazonaws.com/bucketUsed in:
- • Image uploads
- • PDF storage
- • Asset delivery
OPENAI_API_KEYWeek 4OpenAI API key for myth generation
Example:
sk-...Used in:
- • Myth narrative generation
- • Image analysis
Integration Roadmap
Suggested order for adding real integrations.
Week 1 — Scaffold (Current)
All pages, components, and flows working with mock data. No env vars needed.
Week 2 — Stripe Integration
Add STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET. Replace mock checkout with real Stripe sessions.
Week 3 — Storage & Database
Add DATABASE_URL and BLOB_STORAGE_URL. Persist jobs, store uploads, track artifact status.
Week 4 — AI Pipeline
Add OPENAI_API_KEY. Implement image analysis, myth generation, and PDF creation.