mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
Address PR review feedback
- Replace plano.katanemo.com with planoai.dev in allowed hosts - Add planoai.dev to OG route and blog layout allowlists - Revert socket bind to 0.0.0.0 (intentional for port-in-use check) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ce5a221b11
commit
55386f3150
3 changed files with 5 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ export const runtime = "edge";
|
|||
|
||||
const ALLOWED_HOSTS = new Set([
|
||||
"archgw-tau.vercel.app",
|
||||
"plano.katanemo.com",
|
||||
"planoai.dev",
|
||||
"localhost",
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export async function generateMetadata({
|
|||
}
|
||||
|
||||
// Get baseUrl - use NEXT_PUBLIC_APP_URL if set, otherwise construct from VERCEL_URL
|
||||
// Restrict to allowed hosts: localhost:3000, archgw-tau.vercel.app, or plano.katanemo.com
|
||||
// Restrict to allowed hosts: localhost:3000, archgw-tau.vercel.app, or planoai.dev
|
||||
let baseUrl = "http://localhost:3000";
|
||||
|
||||
if (process.env.NEXT_PUBLIC_APP_URL) {
|
||||
|
|
@ -55,7 +55,7 @@ export async function generateMetadata({
|
|||
const parsed = new URL(process.env.NEXT_PUBLIC_APP_URL);
|
||||
const allowedHosts = new Set([
|
||||
"archgw-tau.vercel.app",
|
||||
"plano.katanemo.com",
|
||||
"planoai.dev",
|
||||
"localhost",
|
||||
]);
|
||||
if (allowedHosts.has(parsed.hostname)) {
|
||||
|
|
@ -68,7 +68,7 @@ export async function generateMetadata({
|
|||
const hostname = process.env.VERCEL_URL;
|
||||
if (
|
||||
hostname === "archgw-tau.vercel.app" ||
|
||||
hostname === "plano.katanemo.com"
|
||||
hostname === "planoai.dev"
|
||||
) {
|
||||
baseUrl = `https://${hostname}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ def _is_port_in_use(port: int) -> bool:
|
|||
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
try:
|
||||
s.bind(("127.0.0.1", port))
|
||||
s.bind(("0.0.0.0", port)) # noqa: S104
|
||||
return False
|
||||
except OSError:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue