Skip to content
Open
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
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
esac
- name: Build docs-app
run: pnpm run build:docs
- name: Copy index.html to 404.html for GitHub Pages
run: cp ./packages/__docs__/__build__/index.html ./packages/__docs__/__build__/404.html
Comment on lines +43 to +44
Copy link
Contributor Author

@ToMESSKa ToMESSKa Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

404.html is just a copy of index.html (which is generated after running pnpm run build:docs).
The clean-exclude: (see below) script removes everything not in the source (./packages/__docs__/__build__/), so 404.html should be put there.

Copy link
Collaborator

@matyasf matyasf Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the preview.yml script keeps the 404.html file because it doesnt call clean-exclude?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matyasf I think preview.yml deploys to a completely different location (the gh-pages/pr-preview/....), not to the root of gh-pages where the main 404.html file is, so it never touches the 404.html file.

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
Loading