Make API origin variable available on client side

This commit is contained in:
thiloho
2024-08-19 20:13:49 +02:00
parent bc7d242d3d
commit 488877b2ed
2 changed files with 2 additions and 2 deletions

View File

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