SMP: Minecraft-style join window with live status; allow beta tunnel origin for dev HMR
This commit is contained in:
parent
8fa1f50e8a
commit
d540a6a873
7 changed files with 318 additions and 6 deletions
|
|
@ -37,6 +37,9 @@ heatmap**, a gym SBD panel and links to friends' sites.
|
|||
Jellyfin, Navidrome, GitDXD) from the desktop shows the real site inside the window (an
|
||||
iframe). The service must allow framing; SMP (Discord) keeps a link card because Discord
|
||||
sends `X-Frame-Options: DENY`.
|
||||
- **Minecraft-style SMP window** — the SMP shortcut opens a join menu modelled on
|
||||
Minecraft's multiplayer screen, with live status, player count, MOTD and version pulled
|
||||
from mcstatus.io through the site's own ping API.
|
||||
- **Live GitDXD stats** — contribution heatmap + latest commit activity proxied server-side
|
||||
from the self-hosted Forgejo instance.
|
||||
- **Extras** — a playable `Revival Inc.` game embedded at `/revival-inc`, `llms.txt`,
|
||||
|
|
@ -92,7 +95,9 @@ Handy checks before shipping: `npx tsc --noEmit`, `npx eslint <files>`, `npm run
|
|||
### Testing from a phone on your LAN
|
||||
|
||||
`next.config.ts` sets `allowedDevOrigins` so the dev server can be reached from other devices
|
||||
on the local network (otherwise Next.js 403s the dev asset requests).
|
||||
on the local network and from the `beta.dvorakmortonxd.dev` tunnel. Without it Next.js
|
||||
rejects the dev asset requests *and* the HMR WebSocket, which leaves the page un-hydrated
|
||||
(stacked icons, dead buttons).
|
||||
|
||||
## 📡 API Routes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue