building-use-map/vite.config.ts
HangerThem 51d9985743 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 <noreply@anthropic.com>
2026-11-07 13:09:25 +01:00

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: './',
})