shadow-zone / commit
Fix GitLab Pages 404: remove public/ before moving dist
c37857b7b33a507a528cbaff3719629319782918 · Pavel Safronov · 2026-06-12 08:54:39 -0700 · parents 2db5a2216c84
Fix GitLab Pages 404: remove public/ before moving dist
Without rm -rf public, mv dist public nests dist/ inside the
existing repo public/ directory, putting index.html at
public/dist/index.html instead of public/index.html.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 915efe1..cb30b4f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,7 @@ pages:
script:
- npm ci
- npm run build
+ - rm -rf public
- mv dist public
artifacts:
paths: