Skip to content
Snippets Groups Projects
Select Git revision
  • a13bd1fdc1dcf3e6516424efc1385af416c5f18c
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

vars.js

Blame
  • vars.js 870 B
    
    switch(process.env.BUILD) {
        case "development":
            module.exports = {
                apiBaseUrl: 'https://mw-dev.tugraz.at',
                apiUrlPrefix: '',
                keyCloakClientId: 'auth-dev-mw-frontend',
            };
    
            break;
        case "production":
            module.exports = {
                apiBaseUrl: 'https://mw.tugraz.at',
                apiUrlPrefix: '',
                keyCloakClientId: 'auth-prod-mw-frontend',
            };
            break;
        case "demo":
            module.exports = {
                apiBaseUrl: 'https://api-demo.tugraz.at',
                apiUrlPrefix: '',
                keyCloakClientId: 'auth-dev-mw-frontend',
            };
            break;
        case "local":
        default:
            module.exports = {
                apiBaseUrl: 'http://127.0.0.1:8000',
                apiUrlPrefix: '',
                keyCloakClientId: 'auth-dev-mw-frontend-local',
            };
    }