Set base API prefix to origin in production

This commit is contained in:
thiloho
2024-08-19 19:55:06 +02:00
parent 5cc329c2f1
commit bc7d242d3d
2 changed files with 3 additions and 3 deletions

View File

@@ -146,5 +146,5 @@ export const handleImagePaste = async (event: ClipboardEvent) => {
return newContent;
};
export const API_BASE_PREFIX = dev ? "http://localhost:3000" : "/api";
export const API_BASE_PREFIX = dev ? "http://localhost:3000" : `${process.env.ORIGIN}/api`;
export const NGINX_BASE_PREFIX = dev ? "http://localhost:18000" : "";