Static Website Hosting with GitLab Pages
How to publish your Astro Site with GitLab Pages

How to publish your Astro Site with GitLab Pages

10/24/2022 · Janis Altherr

What this post added

This post details how to configure Astro to output static files to a 'public' directory and static assets to a 'static' directory, and how to set the `base` and `site` properties in `astro.config.mjs` to ensure correct asset loading when deploying to GitLab Pages. It also outlines the steps for creating a `.gitlab-ci.yml` file using the GitLab Pages wizard to build and deploy an Astro site, specifying `node:lts` as the build image, `npm ci` for installation, and `npm run build` for the build command.

Read the original post ↗