Fixes for Upgrade, ability to pull latest sidequest app from site, added permissions, added additional environmental support.

This commit is contained in:
Nathanael Anderson
2024-03-26 23:56:30 -06:00
parent d250bba378
commit 112546c13b
18 changed files with 556 additions and 257 deletions
+18
View File
@@ -1,3 +1,4 @@
export function getEnvCfg() {
switch (process.env['SQ_ENV_CFG']) {
case 'test':
@@ -16,6 +17,23 @@ export function getEnvCfg() {
cdnUrl: 'https://testcdn.sidequestvr.com',
shortenerUrl: 'https://testlinks.side.quest',
};
case 'fried':
case 'friedquest':
return {
web_url: 'https://friedquestvr.com',
ws_url: 'wss://ws.friedquestvr.com',
http_url: 'https://api.friedquestvr.com',
cdnUrl: 'https://cdn.friedquestvr.com',
shortenerUrl: 'https://links.friedquestvr.com',
};
case 'localhost':
return {
web_url: 'http://127.0.0.1:3005',
ws_url: 'ws://127.0.0.1:3008',
http_url: 'http://127.0.0.1:3000',
cdnUrl: 'http://127.0.0.1:3001',
shortenerUrl: 'http://127.0.0.1:3004',
};
case 'local':
return {
web_url: 'https://sidequestvr.local',