fix: use env object from \$env/dynamic/public instead of named imports
All checks were successful
Build and Push Docker Image to Gitea / build-and-push (push) Successful in 5m13s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 17:19:26 +01:00
parent 1e69d0b158
commit de16b64255
3 changed files with 27 additions and 24 deletions

View File

@@ -1,8 +1,8 @@
import { authentication, createDirectus, rest } from "@directus/sdk";
import { PUBLIC_API_URL } from "$env/dynamic/public";
import { env } from "$env/dynamic/public";
import type { CurrentUser } from "./types";
export const directusApiUrl = PUBLIC_API_URL || "http://localhost:3000/api";
export const directusApiUrl = env.PUBLIC_API_URL || "http://localhost:3000/api";
export const getDirectusInstance = (fetch?: typeof globalThis.fetch) => {
const options: { globals?: { fetch: typeof globalThis.fetch } } = fetch