make stuff work without js
All checks were successful
Build the docker image for the API / build (push) Successful in 2m7s
Build the docker image for the frontend application / build (push) Successful in 42s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-04-08 02:39:37 +03:00
parent b312e40204
commit ccf0d8abf9
15 changed files with 95 additions and 113 deletions

View File

@ -1,9 +1,14 @@
import { urljoin, env_url } from "$lib/util.js";
import { browser } from "$app/environment";
import { urljoin } from "$lib/util.js";
const api_version = "v1";
function api_urljoin(path = null, query = {}) {
let api_url = urljoin(env_url("API"), api_version);
let api_url = "";
if (browser) api_url = urljoin(import.meta.env.WEBSITE_API_PATH, api_version);
else api_url = urljoin(import.meta.env.WEBSITE_API_URL, api_version);
return urljoin(api_url, path, query);
}