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 2

Your app's public URL for Stripe redirect URLs

Example:

https://reliquary.vercel.app

Used in:

  • Stripe checkout success/cancel redirects
STRIPE_SECRET_KEYWeek 2

Stripe secret key for creating checkout sessions

Example:

sk_test_...

Used in:

  • Creating checkout sessions
  • Processing payments
STRIPE_WEBHOOK_SECRETWeek 2

Stripe webhook signing secret for verifying events

Example:

whsec_...

Used in:

  • Webhook signature verification
DATABASE_URLWeek 3

Database connection string for storing jobs and artifacts

Example:

postgresql://...

Used in:

  • Job storage
  • Artifact metadata
  • User tracking
BLOB_STORAGE_URLWeek 3

S3/R2 compatible storage for images and PDFs

Example:

https://s3.amazonaws.com/bucket

Used in:

  • Image uploads
  • PDF storage
  • Asset delivery
OPENAI_API_KEYWeek 4

OpenAI API key for myth generation

Example:

sk-...

Used in:

  • Myth narrative generation
  • Image analysis

Integration Roadmap

Suggested order for adding real integrations.

1

Week 1 — Scaffold (Current)

All pages, components, and flows working with mock data. No env vars needed.

2

Week 2 — Stripe Integration

Add STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET. Replace mock checkout with real Stripe sessions.

3

Week 3 — Storage & Database

Add DATABASE_URL and BLOB_STORAGE_URL. Persist jobs, store uploads, track artifact status.

4

Week 4 — AI Pipeline

Add OPENAI_API_KEY. Implement image analysis, myth generation, and PDF creation.