Step-by-step guide to build and serve Arcada Planner on GitHub Pages.
- Node.js 18+
- A GitHub repository for this project
Edit vite.config.ts and add the base field matching your repo name:
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
base: '/arcada-planner/', // ← replace with your repo name
});npm install -D gh-pagesIn package.json, add the deploy script:
{
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"deploy": "npm run build && gh-pages -d dist"
}
}npm run deployThis builds the project and pushes the dist/ folder to the gh-pages branch.
- Go to your repo on GitHub
- Settings → Pages
- Source: Deploy from a branch
- Branch: gh-pages / (root)
- Click Save
Your app will be live at https://YOUR_USERNAME.github.io/arcada-planner/ within a couple of minutes.
- Blank page after deploy: Make sure
baseinvite.config.tsmatches your repo name exactly (e.g.,/arcada-planner/). - Assets not loading: Verify that SVG paths in
catalog.jsondon't use absolute paths — they should be relative (e.g.,sofa, not/assets/2d/sofa). - 404 on refresh: GitHub Pages doesn't support client-side routing out of the box. This app is a single-page app without a router, so this shouldn't be an issue.
npm install
npm run devOpens at http://localhost:5173.
npm run build
npm run previewThe preview command serves the built dist/ folder locally to verify everything works before deploying.