feat: Implement UI polish and layout fixes

This commit is contained in:
LC mac
2026-01-30 19:09:45 +08:00
parent 32dff01132
commit 7564ddc7c9
4 changed files with 22 additions and 9 deletions

View File

@@ -11,7 +11,15 @@ const appVersion = packageJson.version
const gitHash = execSync('git rev-parse --short HEAD').toString().trim()
export default defineConfig({
plugins: [react()],
plugins: [
react(),
{
name: 'html-transform',
transformIndexHtml(html) {
return html.replace(/__APP_VERSION__/g, appVersion);
}
}
],
base: '/', // Always use root, since we're Cloudflare Pages only
publicDir: 'public', // ← Explicitly set (should be default)
build: {