Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,31 @@ const nextConfig: NextConfig = {
"@earendil-works/pi-ai",
"@earendil-works/pi-tui",
],
allowedDevOrigins: ["127.0.0.1", "192.168.*.*"],
// Next 16 blocks cross-origin access to dev resources by default. Allow the
// loopback and the RFC1918 LAN ranges so the dev server stays reachable
// from other machines on the same LAN.
allowedDevOrigins: [
"127.0.0.1",
"10.*.*.*",
// 172.16.0.0/12
"172.16.*.*",
"172.17.*.*",
"172.18.*.*",
"172.19.*.*",
"172.20.*.*",
"172.21.*.*",
"172.22.*.*",
"172.23.*.*",
"172.24.*.*",
"172.25.*.*",
"172.26.*.*",
"172.27.*.*",
"172.28.*.*",
"172.29.*.*",
"172.30.*.*",
"172.31.*.*",
"192.168.*.*",
],
async headers() {
return [
{
Expand Down