ff087ee461
Assets built to public/build/assets/ but index.html referenced /assets/ (no /build/ prefix). Nginx couldn't find them, fell through to Symfony's catch-all SPA route, which served HTML in place of JS — Vue never loaded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
323 B
TypeScript
18 lines
323 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
base: '/build/',
|
|
build: {
|
|
outDir: '../public/build',
|
|
emptyOutDir: true,
|
|
},
|
|
})
|