diff --git a/app/config/environment.js b/app/config/environment.js index e88e0c3..757fe7f 100644 --- a/app/config/environment.js +++ b/app/config/environment.js @@ -1,26 +1,36 @@ 'use strict'; module.exports = function (environment) { - let ENV = { - modulePrefix: 'your-app-name', + const ENV = { + modulePrefix: 'player-basic', environment, rootURL: '/', locationType: 'history', - - pocketbase: { - url: environment === 'production' - ? 'https://gauntlet-chatgenius-pocketbase-2.fly.dev' - : 'http://127.0.0.1:8090' + EmberENV: { + EXTEND_PROTOTYPES: false, + FEATURES: { + }, + }, + + APP: { }, - - // ... other config }; + if (environment === 'development') { + ENV.APP.API_HOST = 'http://127.0.0.1:8090'; + } + + if (environment === 'test') { + ENV.locationType = 'none'; + ENV.APP.LOG_ACTIVE_GENERATION = false; + ENV.APP.LOG_VIEW_LOOKUPS = false; + ENV.APP.rootElement = '#ember-testing'; + ENV.APP.autoboot = false; + } + if (environment === 'production') { - // Add any production-specific settings - ENV.rootURL = '/'; - ENV.locationType = 'history'; + ENV.APP.API_HOST = 'https://gauntlet-chatgenius-pocketbase-2.fly.dev'; } return ENV; -}; \ No newline at end of file +}; \ No newline at end of file diff --git a/app/services/pocketbase.js b/app/services/pocketbase.js index 452f86b..4621f17 100644 --- a/app/services/pocketbase.js +++ b/app/services/pocketbase.js @@ -9,7 +9,7 @@ export default class PocketbaseService extends Service { constructor() { super(...arguments); - this.client = new PocketBase(config.pocketbase.url); + this.client = new PocketBase(config.APP.API_HOST); } get name() {