feat: PR preview deployments on GitHub Pages#14
Conversation
Co-authored-by: Lotes <1525964+Lotes@users.noreply.github.com>
|
|
@copilot The preview deploy of this PR is not reachable, find out why: https://lotes.github.io/quartett-meister/pr-preview/pr-14/ |
…xt/ assets Co-authored-by: Lotes <1525964+Lotes@users.noreply.github.com>
Found the root cause (commit
Fix: two new steps in
The next time the PR preview workflow runs (on the next push to this branch) the preview at https://lotes.github.io/quartett-meister/pr-preview/pr-14/ should be fully functional. |
next.config.ts: changeoutputtoexport, add dynamicbasePathviaNEXT_PUBLIC_BASE_PATHenv var, addimages.unoptimized: true.github/workflows/gh-pages.yml: switch from Pages-API deployment to branch-based deployment usingJamesIves/github-pages-deploy-action@v4; setNEXT_PUBLIC_BASE_PATH=/quartett-meister; preservepr-previewdir withclean-exclude.github/workflows/preview.yml: build with PR-scoped basePath (/quartett-meister/pr-preview/pr-{number}), deploy/remove usingrossjrw/pr-preview-action@v1.nojekylltogh-pagesroot inpreview.yml—JamesIvesplaces.nojekyllinside the deployedfolder(pr-preview/pr-N/.nojekyll), not the branch root, so Jekyll was silently blocking_next/asset directories✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.