
Deploy Frontend
Walks you through the seven-step process to get a React, Next.js, or static site live on Butterbase, from setting environment variables to verifying the deployment. The real value is in the prescriptive details: it includes a complete Node archiver script because the usual zip methods break MIME types on Windows, has a framework reference table for build commands and output directories, and covers the CORS configuration step most guides skip. If you've ever deployed a frontend only to see a blank page or console errors about incorrect content types, this addresses exactly those issues. The workflow is opinionated but that's the point.
- GitHub stars
- 532
- last updated
- Jun 11, 2026
Install
$ npx -y skills add butterbase-ai/butterbase-skills --skill deploy-frontend --agent claude-codeInstalls into .claude/skills of the current project.
Files
Overview
7-step workflow for deploying static frontends to Butterbase. Covers building, CORS, zipping, uploading, and verification.
Framework Reference Table
| Framework | Build command | Output dir | Env prefix | Framework flag |
|---|---|---|---|---|
| React (Vite) | npm run build | dist/ | VITE_ | react-vite |
| Next.js (static) | next build | out/ | NEXT_PUBLIC_ | nextjs-static |
| Plain HTML | (none) | project root | N/A | static |
Note: Next.js requires
output: 'export'innext.config.jsto produce a static export.
Step 1: Set Environment Variables
Use manage_frontend with action: "set_env" to configure the API URL and app ID before building. These variables are injected at build time by the framework.
{
"app_id": "app_abc123",
"action": "set_env",
"vars": {
"VITE_API_URL": "https://api.butterbase.ai/v1/app_abc123",
"VITE_APP_ID": "app_abc123"
}
}
Sponsors
Details
- Repository
- github.com/butterbase-ai/butterbase-skills
- Categories
- Frontend Development, DevOps & CI/CD, Release Management
- License
- MIT
- First seen
- Jun 11, 2026
More from butterbase-ai/butterbase-skills
All 39- Durable Objects
- Function Dev
- Integrations
- Journey
- Journey Agents
- Journey Ai
- Journey Auth
- Journey Deploy
- Journey Docs
- Journey Durable
- Journey Frontend
- Journey Functions
- Journey Idea
- Journey Plan
- Journey Preflight
- Journey Rag
- Journey Realtime
- Journey Rls
- Journey Schema
- Journey Storage
- Journey Submit
- Journey Substrate
- Journey Templates
- Migrations