Deploy Device Toolbox website with GitHub Pages#1
Closed
Copilot wants to merge 3 commits into
Closed
Conversation
Co-authored-by: balloob <1444314+balloob@users.noreply.github.com>
Co-authored-by: balloob <1444314+balloob@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Deploy this website with github pages
Deploy Device Toolbox website with GitHub Pages
Sep 25, 2025
Member
|
@copilot I've added a domain to the main branch in |
balloob
reviewed
Sep 25, 2025
| margin: 0; | ||
| } | ||
| </style> | ||
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements GitHub Pages deployment for the Device Toolbox website, a Vite-based application using TypeScript and Lit web components.
Changes Made
Vite Configuration
vite.config.tsto set the correct base path (/toolbox/) for GitHub Pages deployment in productionGitHub Actions Workflow
.github/workflows/deploy.ymlfor automated build and deploymentSingle Page Application (SPA) Support
public/404.htmlto handle client-side routing on GitHub Pages/toolbox/vpe, GitHub Pages serves the 404.html which redirects to the main appindex.htmlwith redirect handling script to restore correct URLs from the 404 redirectRouter Updates
src/utils/router.tsto properly handle the base path/toolboxprefix in production while maintaining clean internal routingTesting Results
The deployment has been thoroughly tested locally:
/toolbox//toolbox/vpe,/toolbox/zwa2)Screenshots
Homepage:

Detail Page (ZWA-2):

Deployment
Once merged, the website will be automatically deployed to GitHub Pages at
https://openhomefoundation.github.io/toolbox/. The repository settings need to be configured to enable GitHub Pages with "GitHub Actions" as the deployment source.The build process includes:
All changes maintain backward compatibility and don't affect the development workflow.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/OpenHomeFoundation/OpenHomeFoundation%2Ftoolbox/languages/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.