initial commit
This commit is contained in:
27
app/config/environment.js
Normal file
27
app/config/environment.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import loadConfigFromMeta from '@embroider/config-meta-loader';
|
||||
import { assert } from '@ember/debug';
|
||||
|
||||
const config = loadConfigFromMeta('frontend-lblod-chat');
|
||||
|
||||
assert(
|
||||
'config is not an object',
|
||||
typeof config === 'object' && config !== null,
|
||||
);
|
||||
assert(
|
||||
'modulePrefix was not detected on your config',
|
||||
'modulePrefix' in config && typeof config.modulePrefix === 'string',
|
||||
);
|
||||
assert(
|
||||
'locationType was not detected on your config',
|
||||
'locationType' in config && typeof config.locationType === 'string',
|
||||
);
|
||||
assert(
|
||||
'rootURL was not detected on your config',
|
||||
'rootURL' in config && typeof config.rootURL === 'string',
|
||||
);
|
||||
assert(
|
||||
'APP was not detected on your config',
|
||||
'APP' in config && typeof config.APP === 'object',
|
||||
);
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user