settings for local environment

main
alex 2023-08-17 08:54:55 +00:00
parent cb0d18facc
commit 8c4e1c517f
1 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ import { v4 as uuidv4 } from "uuid";
/**
* constants
*/
const wssProtocol = window.location.protocol === "https:" ? "wss://" : "ws://";
//const wssProtocol = window.location.protocol === "https:" ? "wss://" : "ws://";
export const Constants = {
COLORS: {
@ -17,14 +17,14 @@ export const Constants = {
ICON_INFO: "#08c",
},
TEXT_EMPTY_PLACEHOLDER: "-/-",
//API_ADDRESS: "http://localhost:8080/v1",
//STATIC_CONTENT_ADDRESS: "http://localhost:8080/",
//WS_ADDRESS: "ws://localhost:8080/ws",
API_ADDRESS:
API_ADDRESS: "http://localhost:8080/v1",
STATIC_CONTENT_ADDRESS: "http://localhost:8080/",
WS_ADDRESS: "ws://localhost:8080/ws",
/*API_ADDRESS:
window.location.protocol + "//" + window.location.hostname + "/api/v1",
STATIC_CONTENT_ADDRESS:
window.location.protocol + "//" + window.location.hostname + "/api/",
WS_ADDRESS: `${wssProtocol}${window.location.hostname}/ws`,
WS_ADDRESS: `${wssProtocol}${window.location.hostname}/ws`,*/
ROUTE_PATHS: {
GROUP_TASKS: "/group-tasks",
GROUP_TASKS_VIEW: "/group-tasks/",