fix(frontend): document non-standard vite config, clean stale client/dist (closes #66)
Build and Push Docker Image / build (push) Successful in 1m20s
Docs Check / Markdown lint (push) Failing after 1m39s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m56s
CI / Security audit (push) Successful in 2m30s
CI / Tests & coverage (push) Successful in 2m45s
CI / Swagger Validation & Coverage (push) Successful in 2m52s
Docs Check / Mermaid diagram parse check (push) Successful in 2m47s
Build and Push Docker Image / build (push) Successful in 1m20s
Docs Check / Markdown lint (push) Failing after 1m39s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m56s
CI / Security audit (push) Successful in 2m30s
CI / Tests & coverage (push) Successful in 2m45s
CI / Swagger Validation & Coverage (push) Successful in 2m52s
Docs Check / Mermaid diagram parse check (push) Successful in 2m47s
This commit is contained in:
@@ -12,7 +12,17 @@ export default defineConfig(({ mode }) => {
|
||||
|
||||
return {
|
||||
build: {
|
||||
// NOTE (Issue #66): `outDir` is intentionally the repo-root `../public`,
|
||||
// NOT the Vite default `client/dist/`. The Express server in
|
||||
// `server/app.js` serves static assets directly from `public/`, so the
|
||||
// Vite build emits its bundle alongside the hand-authored static assets
|
||||
// (favicon, etc.) that live in `public/` and are committed to the repo.
|
||||
// Do NOT change this back to `dist/` without also updating the Express
|
||||
// static-serve configuration and the Dockerfile copy steps.
|
||||
outDir: '../public',
|
||||
// NOTE (Issue #66): `emptyOutDir: false` is REQUIRED because `public/`
|
||||
// contains hand-authored static assets that must survive the build.
|
||||
// Setting this to `true` would wipe those assets on every `vite build`.
|
||||
emptyOutDir: false,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
|
||||
Reference in New Issue
Block a user