Building Website
Build and test the Apache Phoenix website locally with the current React + TypeScript workflow.
Prerequisites
- Node.js 22.x (minimum
22.12.0) - npm (bundled with Node.js)
Building Phoenix Project Website
- Clone the repository:
git clone git@github.com:apache/phoenix-site.git
cd phoenix-site- During development, install dependencies:
npm ci- For local iteration, run checks/build directly when needed:
npm run ci- Before opening a pull request, run the mandatory build script:
./build.shbuild.sh is required for all contributors. It:
- ensures Node/npm are available
- runs a clean install (
npm ci) - runs full validation/build (
npm run ci) - copies
build/client/intooutput/
There is no remote CI/CD runner currently executing this script. The generated output/ directory is a build artifact that must be committed and pushed with your PR.
Publishing Website Artifact
Current publishing flow:
- Run
./build.shlocally - Commit both source changes and updated
output/ - Push your branch and open a PR
After merge, output/ is used as the website artifact for deployment.
Local Testing During Development
Start the development server with hot reload:
npm run devBy default, the website is available at:
http://localhost:5173To test the production build locally:
npm run start