Differentiate between dev and prod for api and nginx

This commit is contained in:
thiloho
2024-08-14 19:33:41 +02:00
parent cf1600671b
commit 0e3fb96dda
18 changed files with 85 additions and 128 deletions

View File

@@ -1,5 +1,6 @@
import markdownit from "markdown-it";
import hljs from "highlight.js";
import { dev } from "$app/environment";
export const sortOptions = [
{ value: "creation-time", text: "Creation time" },
@@ -23,3 +24,6 @@ export const md = markdownit({
return "";
}
});
export const API_BASE_PREFIX = dev ? "http://localhost:3000" : "/api";
export const NGINX_BASE_PREFIX = dev ? "http://localhost:18000" : "/user-websites";