From e13f78b2af465075191ad1d4b415de9fd2ecdaa4 Mon Sep 17 00:00:00 2001 From: ecrum19 Date: Thu, 22 Oct 2026 11:00:46 +0200 Subject: [PATCH] Fix blank GitHub Pages site by disabling Jekyll GitHub Pages runs Jekyll on branch deploys, which drops files starting with "_". The Vite 8 build emits _plugin-vue_export-helper-*.js, so that chunk 404'd and the app never mounted. Write an empty .nojekyll into dist during the post-build step so it is deployed with the site. Co-Authored-By: Claude Opus 5.5 --- scripts/github-post-build.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/github-post-build.mjs b/scripts/github-post-build.mjs index 3d49512e..60ea6957 100644 --- a/scripts/github-post-build.mjs +++ b/scripts/github-post-build.mjs @@ -1,4 +1,4 @@ -import { cpSync, mkdirSync } from 'fs'; +import { cpSync, mkdirSync, writeFileSync } from 'fs'; import { join } from 'path'; const routes = [ @@ -16,3 +16,6 @@ for (const route of routes) { mkdirSync(target, { recursive: true }); cpSync(join(dir, 'index.html'), join(target, 'index.html')); } + +// Disable Jekyll on GitHub Pages, which drops files starting with "_" (e.g. Vite's _plugin-vue_export-helper chunk). +writeFileSync(join(dir, '.nojekyll'), '');