mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +01:00
Differentiate between dev and prod for api and nginx
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user