diff options
author | Blaster4385 <[email protected]> | 2024-03-03 19:09:18 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2024-04-30 11:10:37 +0530 |
commit | cafb4b0b6f565706a8b68837f599c83e706f6700 (patch) | |
tree | e5749750a0c22511ddabd7bad4c5d9479cb50244 /client/src/utils | |
parent | 5e7629a055e8568a0775436b1dbf5797a5640056 (diff) |
chore: simplify base url
Diffstat (limited to 'client/src/utils')
-rw-r--r-- | client/src/utils/constants.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/utils/constants.js b/client/src/utils/constants.js index adb01a3..e783114 100644 --- a/client/src/utils/constants.js +++ b/client/src/utils/constants.js @@ -1,5 +1,4 @@ -export const CLIENT_BASE_URL = import.meta.env.VITE_CLIENT_BASE_URL; -export const SERVER_BASE_URL = import.meta.env.VITE_SERVER_BASE_URL; +export const BASE_URL = window.location.origin; export const URL_REGEX = /^(https?:\/\/)?([\w.-]+\.[a-z]{2,})(\/?[^\s]*)?$/; export const SUPPORTED_LANGUAGES = [ { |