P4-P7 페르소나와 Tailnet 허용 보강
This commit is contained in:
parent
17b114f647
commit
7f4a2d90c7
12 changed files with 121 additions and 30 deletions
|
|
@ -9,10 +9,16 @@ const nodeEnv = (
|
|||
process?: { env?: { VITE_ALLOWED_HOSTS?: string; VITE_API_PROXY_TARGET?: string } };
|
||||
}
|
||||
).process?.env;
|
||||
const allowedHosts = (nodeEnv?.VITE_ALLOWED_HOSTS ?? "")
|
||||
.split(",")
|
||||
.map((host: string) => host.trim())
|
||||
.filter(Boolean);
|
||||
const defaultAllowedHosts = ["alpaca-home.taile93291.ts.net"];
|
||||
const allowedHosts = Array.from(
|
||||
new Set([
|
||||
...defaultAllowedHosts,
|
||||
...(nodeEnv?.VITE_ALLOWED_HOSTS ?? "")
|
||||
.split(",")
|
||||
.map((host: string) => host.trim())
|
||||
.filter(Boolean),
|
||||
]),
|
||||
);
|
||||
const apiProxyTarget = nodeEnv?.VITE_API_PROXY_TARGET?.trim() || "http://127.0.0.1:8000";
|
||||
|
||||
export default defineConfig({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue