This is the production documentation for [PROJECT], built with the Satūs framework by darkroom.engineering.
The usual process for Next.js based apps/websites:
-
Install dependencies:
bun install
-
Get the .env variables from Vercel:
vercel link vercel env pull
-
Start development server:
bun dev
For HTTPS (required for Storyblok):
bun dev:https
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"
- Visual Editor:
https://your-domain.com/api/draft?secret=DRAFT_MODE_TOKEN&slug=/
- Content Revalidation Webhook:
https://your-domain.com/api/revalidate
- Storyblok Documentation
- GSAP for general animations
- Theatre.js for complex sequences
- GSAP Documentation
- Hybrid approach with Tailwind CSS and PostCSS
- Responsive units:
mobile-vw()
anddesktop-vw()
- Grid system: 4 columns (mobile) / 12 columns (desktop)
- Styling Documentation
Detailed documentation is available in the repository:
- Styles System - Complete styling architecture and usage
- GSAP Integration - Animation system setup and examples
- Storyblok Integration - CMS configuration and usage
- Quick How-To Guide - Common tasks and solutions
- Root README - Project overview and development setup
- Next.js
- React
- TypeScript
- Bun (Runtime & Package Manager)
- CSS Modules with PostCSS
- Tailwind CSS
- clsx
- Base UI
bun setup:styles
- Regenerate style configurationbun typecheck
- TypeScript validationbun lint
- Run Biome lintingbun analyze
- Bundle analysis
Access at /debug/orchestra
:
- Theatre.js Studio (⚙️)
- Performance Stats (📈)
- Grid Debug (🌐)
- Development Mode (🚧)
- Minimap (🗺️)
- WebGL Debug (🧊)
- Environment variables are set in Vercel
- Storyblok webhooks are configured
- GSAP license is valid (if using premium features)
- SSL certificates are valid
- Performance metrics are within acceptable ranges
- Vercel Analytics Dashboard
- Lighthouse CI Reports
- Performance Documentation
- Content changes through Storyblok will automatically update via webhooks
- For code changes, follow the standard Vercel deployment flow
- Clear cache if needed:
https://your-domain.com/api/revalidate
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
-
Storyblok Visual Editor Not Working
- Check SSL certificates
- Verify draft mode token
- Ensure correct preview URL in Storyblok
-
Style Updates Not Reflecting
- Run
bun setup:styles
- Clear browser cache
- Check deployment status
- Run
-
Performance Issues
- Check Theatre.js sequences
- Verify GSAP animations
- Monitor WebGL performance