Deployment
Deploy to Netlify or Vercel, and build the public theme demo.
Netlify
netlify.toml is included. Connect the repository and deploy: the build command, output folder and Node version are already set. Add your environment variables in Site configuration > Environment variables.
Vercel
Import the repository. Vercel detects Astro; the output is static. Add your environment variables in Settings > Environment Variables.
Any static host
npm run build
Upload dist/. Configure the host to serve 404.html for missing pages.
Build variables
These are read at build time only:
| Variable | Effect |
|---|---|
SWIFTJOBS_MODE |
board or career |
SWIFTJOBS_CAREER_COMPANY |
Company id for career mode and ATS import |
SWIFTJOBS_ATS |
provider:board, for example greenhouse:acme |
SWIFTJOBS_ATS_COUNTRY |
Fallback country for imported jobs |
SWIFTJOBS_DEMO |
1 turns on the demo panel, palette previews and these docs |
The theme demo
The public demo is two deployments of the same repository:
| Deployment | Variables |
|---|---|
| Job board demo | SWIFTJOBS_DEMO=1 |
| Career site demo | SWIFTJOBS_DEMO=1, SWIFTJOBS_MODE=career |
Add SWIFTJOBS_DEMO_BOARD_URL and SWIFTJOBS_DEMO_CAREER_URL to both, so the demo panel can switch between them, and SWIFTJOBS_BUY_URL for the “Get the theme” button.
Never set SWIFTJOBS_DEMO on a real site.