Skip to content

Latest commit

 

History

History
190 lines (146 loc) · 5.1 KB

PROD-README.md

File metadata and controls

190 lines (146 loc) · 5.1 KB

[PROJECT]

This is the production documentation for [PROJECT], built with the Satūs framework by darkroom.engineering.

Setup:

The usual process for Next.js based apps/websites:

  1. Install dependencies:

    bun install
  2. Get the .env variables from Vercel:

    vercel link
    vercel env pull
  3. Start development server:

    bun dev

    For HTTPS (required for Storyblok):

    bun dev:https

Environment Variables

Required in .env:

# Storyblok
STORYBLOK_PUBLIC_ACCESS_TOKEN="your-public-token"
STORYBLOK_PREVIEW_ACCESS_TOKEN="your-preview-token"
DRAFT_MODE_TOKEN="your-draft-mode-token"

# GSAP (if using premium features)
GSAP_AUTH_TOKEN="your-gsap-token"

# Base URL
NEXT_PUBLIC_BASE_URL="https://your-domain.com"

Core Technologies:

Content Management (Storyblok)

  • Visual Editor: https://your-domain.com/api/draft?secret=DRAFT_MODE_TOKEN&slug=/
  • Content Revalidation Webhook: https://your-domain.com/api/revalidate
  • Storyblok Documentation

Animation Systems

Styling System

  • Hybrid approach with Tailwind CSS and PostCSS
  • Responsive units: mobile-vw() and desktop-vw()
  • Grid system: 4 columns (mobile) / 12 columns (desktop)
  • Styling Documentation

Documentation

Detailed documentation is available in the repository:

Stack:

Core

3D & Animation

Integrations

UI & Styling

Development

Performance & Utilities

Development Tools:

Available Scripts

  • bun setup:styles - Regenerate style configuration
  • bun typecheck - TypeScript validation
  • bun lint - Run Biome linting
  • bun analyze - Bundle analysis

Debug Tools

Access at /debug/orchestra:

  • Theatre.js Studio (⚙️)
  • Performance Stats (📈)
  • Grid Debug (🌐)
  • Development Mode (🚧)
  • Minimap (🗺️)
  • WebGL Debug (🧊)

Deployment:

Production Checks

  1. Environment variables are set in Vercel
  2. Storyblok webhooks are configured
  3. GSAP license is valid (if using premium features)
  4. SSL certificates are valid
  5. Performance metrics are within acceptable ranges

Monitoring

Content Updates

  1. Content changes through Storyblok will automatically update via webhooks
  2. For code changes, follow the standard Vercel deployment flow
  3. Clear cache if needed: https://your-domain.com/api/revalidate

Project Structure:

project/
├── app/                  # Next.js app directory
│   └── (pages)/         # Page components
│       └── r3f/         # Three.js components
├── components/          # Reusable components
├── libs/                # Core functionality
│   ├── storyblok/      # CMS integration
│   ├── theatre/        # Animation tooling
│   └── webgl/          # Three.js utilities
├── styles/             # Styling system
│   ├── css/            # Generated CSS
│   └── scripts/        # Style generation
└── docs/               # Documentation

Support & Maintenance:

Common Issues

  1. Storyblok Visual Editor Not Working

    • Check SSL certificates
    • Verify draft mode token
    • Ensure correct preview URL in Storyblok
  2. Style Updates Not Reflecting

    • Run bun setup:styles
    • Clear browser cache
    • Check deployment status
  3. Performance Issues

    • Check Theatre.js sequences
    • Verify GSAP animations
    • Monitor WebGL performance