-
Notifications
You must be signed in to change notification settings - Fork 107
build: generate 404.html file during new deploy release #2381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| - name: Copy index.html to 404.html for GitHub Pages | ||
| run: cp ./packages/__docs__/__build__/index.html ./packages/__docs__/__build__/404.html |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
|
matyasf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my question, if its not needed for preview.yml, then lets go
INSTUI-4905
ISSUE: