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