Skip to content

GitHub Pages

The portal is configured for static output and can be deployed to GitHub Pages.

Use:

  • SITE: the GitHub Pages origin, for example https://otimizai-tech.github.io
  • BASE_PATH: the repository path, for example /VectorHub/

Example:

Terminal window
SITE=https://otimizai-tech.github.io BASE_PATH=/VectorHub/ npm run build

The package also includes:

Terminal window
npm run build:github

By default, build:github uses:

SITE=https://otimizai-tech.github.io
BASE_PATH=/VectorHub/

Override those variables if the repository name or organization changes.

GitHub Pages project sites are usually served below a repository path. The portal uses Astro base so links and the Scalar OpenAPI URL continue working below that path.

The public/.nojekyll file is included so GitHub Pages serves Astro assets under _astro.