feat: switch PUBLIC_API_URL and PUBLIC_URL to dynamic env for runtime configurability
Some checks failed
Build and Push Docker Image to Gitea / build-and-push (push) Failing after 3m3s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 17:01:37 +01:00
parent 3915dbc115
commit 865787fb45
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { authentication, createDirectus, rest } from "@directus/sdk";
import { PUBLIC_API_URL } from "$env/static/public";
import { PUBLIC_API_URL } from "$env/dynamic/public";
import type { CurrentUser } from "./types";
export const directusApiUrl = PUBLIC_API_URL || "http://localhost:3000/api";