comty.js/src/remotes.js

25 lines
420 B
JavaScript
Executable File

const envOrigins = {
development: `${location.origin}/api`,
indev: "https://indev.comty.app/api",
production: "https://api.comty.app",
}
export default {
origin: envOrigins[process.env.NODE_ENV ?? "production"],
websockets: [
{
namespace: "posts",
path: "/posts",
ng: true,
},
{
namespace: "notifications",
path: "/notifications",
},
{
namespace: "chats",
path: "/chats",
},
],
}