SMP: Minecraft-style join window with live status; allow beta tunnel origin for dev HMR

This commit is contained in:
Martin Dvořák 2026-09-24 09:20:06 +00:00
commit d540a6a873
7 changed files with 318 additions and 6 deletions

View file

@ -4,7 +4,16 @@ const nextConfig: NextConfig = {
// Allow testing the dev server from other devices on the LAN (e.g. a phone).
// Without this Next.js blocks cross-origin requests to /_next/* dev assets
// with a 403, which stops the JS from loading and makes the page inert.
allowedDevOrigins: ["192.168.10.124", "192.168.*.*", "10.*.*.*"],
// The HMR WebSocket is checked against this list too: if the tunnel/beta host
// isn't listed, the socket is rejected and the dev client never hydrates
// (SSR-only page: stacked icons, dead buttons).
allowedDevOrigins: [
"192.168.10.124",
"192.168.*.*",
"10.*.*.*",
"beta.dvorakmortonxd.dev",
"*.dvorakmortonxd.dev",
],
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,