Skip to content

Commit 1ce5ba3

Browse files
committed
Serve from custom domain openportal.cc at root
Build with default base / instead of the /openportal/ sub-path so assets resolve at the custom domain root (was the source of the 404s). Pin the domain with public/CNAME so it persists across Actions deploys, and point README references at openportal.cc. Old project URLs keep working via GitHub's automatic 301 redirect, so existing badges survive.
1 parent 00f6e4d commit 1ce5ba3

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ jobs:
3434

3535
- run: pnpm lint
3636

37-
# Base path must match the repository name for project Pages sites.
37+
# Served from the custom domain root (openportal.cc), so build with base "/".
3838
- run: pnpm build
39-
env:
40-
VITE_BASE: /${{ github.event.repository.name }}/
4139

4240
# SPA fallback so deep links resolve to index.html.
4341
- run: cp dist/index.html dist/404.html

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ Installable, offline app shell. The service worker (`public/sw.js`) is a **hand-
6464

6565
## Deploy
6666

67-
`pnpm build` → static `dist/`. For a GitHub Pages **project** site, set `VITE_BASE=/<repo-name>/` (CI does this automatically) so asset paths resolve under the sub-path; CI also copies `index.html``404.html` for SPA deep-link fallback. For a custom domain / root deploy, the default base `/` is correct.
67+
`pnpm build` → static `dist/`. The site is served at the **custom domain `openportal.cc`** (root), so CI builds with the default base `/`; `public/CNAME` pins the domain across Actions deploys, and CI copies `index.html``404.html` for SPA deep-link fallback. GitHub Pages 301-redirects the old project URL `andronedev.github.io/openportal/*` to `openportal.cc/*` with the path preserved, so existing badge embeds keep working. To deploy a fork under a sub-path instead, set `VITE_BASE=/<repo-name>/`.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Your Meta Portal doesn't have to end up in a drawer. OpenPortal gives it a secon
66

77
OpenPortal talks to your Portal over USB using [WebUSB](https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API) and [ya-webadb](https://github.com/yume-chan/ya-webadb) to speak the ADB protocol straight from a web page.
88

9-
**[Open the app](https://andronedev.github.io/openportal/)** in a Chromium-based browser, no install required.
9+
**[Open the app](https://openportal.cc/)** in a Chromium-based browser, no install required.
1010

1111
<!-- Screenshot: drop an image at docs/screenshot.png and uncomment the line below -->
1212
<!-- ![OpenPortal](docs/screenshot.png) -->
@@ -72,14 +72,14 @@ Built an app that's in the catalog? Link straight to it from your own README or
7272
Paste this into your README and replace `YOUR.PACKAGE.NAME` with your app's Android package name (the same `packageName` as in its catalog entry):
7373

7474
```md
75-
[![Get it on OpenPortal](https://andronedev.github.io/openportal/openportal-badge.svg)](https://andronedev.github.io/openportal/apps/YOUR.PACKAGE.NAME)
75+
[![Get it on OpenPortal](https://openportal.cc/openportal-badge.svg)](https://openportal.cc/apps/YOUR.PACKAGE.NAME)
7676
```
7777

7878
For example, Portal Calendar (`com.portal.calendar`) renders as:
7979

80-
[![Get it on OpenPortal](https://andronedev.github.io/openportal/openportal-badge.svg)](https://andronedev.github.io/openportal/apps/com.portal.calendar)
80+
[![Get it on OpenPortal](https://openportal.cc/openportal-badge.svg)](https://openportal.cc/apps/com.portal.calendar)
8181

82-
Just want the plain link? It's `https://andronedev.github.io/openportal/apps/YOUR.PACKAGE.NAME` — you can also grab it straight from the app's detail dialog with the **Copy link** button.
82+
Just want the plain link? It's `https://openportal.cc/apps/YOUR.PACKAGE.NAME` — you can also grab it straight from the app's detail dialog with the **Copy link** button.
8383

8484
## Contributing
8585

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
openportal.cc

0 commit comments

Comments
 (0)