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 <noreply@anthropic.com>
9 lines
299 B
TypeScript
9 lines
299 B
TypeScript
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()],
|
|
// relative asset URLs so dist/ works from any sub-path
|
|
base: './',
|
|
})
|