Skip to content

Commit 0285bbb

Browse files
committed
build: emit the production build to site/ for publishing
The factory publishes the servable app from site/, so point Vite's outDir there and ignore it. Update the README and architecture notes that referenced the old dist/ path.
1 parent b253fb2 commit 0285bbb

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules/
22
dist/
3-
site/dist/
3+
site/
44
coverage/
55
*.log
66
npm-debug.log*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ npm run dev # local dev server
6464
npm test # vitest unit tests
6565
npm run test:e2e # playwright real-browser tests (npx playwright install first)
6666
npm run lint # eslint
67-
npm run build # static production build (output: dist/)
67+
npm run build # static production build (output: site/)
6868
```
6969

7070
## Status

docs/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ without simulating DOM events.
6161

6262
- `npm run dev` — Vite dev server.
6363
- `npm run build` — static production build (relative `base: "./"` so it works
64-
from a subpath like `apps.charliekrug.com/diff-poster/`); output in `dist/`.
64+
from a subpath like `apps.charliekrug.com/diff-poster/`); output in `site/`.
6565
- `npm test` — vitest (jsdom environment); `npm run lint` — eslint.
6666
- `npm run test:e2e` — Playwright, against a real Chromium render at the
6767
three declared breakpoints (`e2e/`, config in `playwright.config.js`). jsdom

vite.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@ export default defineConfig({
44
// Relative asset paths so the built site works when served from any
55
// subpath (e.g. apps.charliekrug.com/diff-poster), not just the domain root.
66
base: "./",
7+
// Emit the static build to site/ — the directory the factory publishes as
8+
// the live app; the app is its own landing page (wordmark, GitHub link,
9+
// and the below-fold explainer/FAQ all ship in index.html).
10+
build: {
11+
outDir: "site",
12+
emptyOutDir: true,
13+
},
714
});

0 commit comments

Comments
 (0)