From 51d998574324cd839fe75d281c37663256cccfc3 Mon Sep 17 00:00:00 2001 From: HangerThem Date: Sat, 7 Nov 2026 13:09:25 +0100 Subject: [PATCH] fix(build): standard Vite layout so Railpack finds dist/ Railpack resolved outDir '../dist' (with root 'src') to /dist and the deploy failed at "copy /dist". index.html now lives at the repo root and the build writes to the default ./dist. Co-Authored-By: Claude Opus 5.5 --- src/index.html => index.html | 2 +- vite.config.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) rename src/index.html => index.html (92%) diff --git a/src/index.html b/index.html similarity index 92% rename from src/index.html rename to index.html index 586d876..9654340 100644 --- a/src/index.html +++ b/index.html @@ -12,6 +12,6 @@
- + diff --git a/vite.config.ts b/vite.config.ts index d8511c4..c7a4863 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,13 +1,9 @@ import preact from '@preact/preset-vite' import { defineConfig } from 'vite' +// Standard layout: index.html at the root, output in ./dist (what Railpack/Coolify expect). export default defineConfig({ plugins: [preact()], - root: 'src', // relative asset URLs so dist/ works from any sub-path base: './', - build: { - outDir: '../dist', - emptyOutDir: true, - }, })