Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

#### Netlify SPA routing — direct navigation 404s (#3)

- **Replaced the malformed `public/_redirects/` directory** (containing `main.tsx`) with a plain-text `public/_redirects` file holding the same `/* /index.html 200` fallback rule
- Netlify can now read `dist/_redirects`, so direct navigation and refresh on client-side routes such as `/journal`, `/journal/berlin-morning-light` and `/ebook` no longer return 404; existing static files are still served first
- Netlify's site base directory is empty, so `src/app/netlify.toml` is not read during deploys; `public/_redirects` is the single effective redirect definition

#### Style Guide Dark Mode — Atomic Black Backgrounds

- **Fixed Style Guide page dark mode** (`/styles/blocks/style-guide-page.css`) — All white backgrounds replaced with atomic black (#0F0F0F)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ThisOneTimeOnAcidCom/
- **Source**: everything in the repository (`src/`, `guidelines/`, `scripts/`, config files)
- **Generated**: the `dist/` directory is the Vite production build output, deployed to Netlify — it is git-ignored and not part of source configuration

The `netlify.toml` at `src/app/netlify.toml` defines the deployment configuration (build command, publish directory, headers, redirects).
Netlify build settings (empty base directory, build command, `dist` publish directory) are configured in the Netlify dashboard. Because the base directory is the repository root, `src/app/netlify.toml` is **not** read during deploys. SPA routing is defined in a single place: the plain-text `public/_redirects` file, which Vite copies to `dist/_redirects`. Keep it a file, not a directory, and do not add a competing `[[redirects]]` rule elsewhere.

## Validation

Expand Down
File renamed without changes.
Loading