39 lines
962 B
JavaScript
39 lines
962 B
JavaScript
/**
|
|
* Moxiegen Frontend Configuration
|
|
* Update these values to match your Auth0 and API settings
|
|
*/
|
|
|
|
const CONFIG = {
|
|
// Auth0 Configuration
|
|
auth0: {
|
|
domain: 'dev-t13zhs74oltgqtfx.us.auth0.com',
|
|
clientId: 'AWRYU8EBnKaHvRQOMXXADxgGEoBN45oN',
|
|
audience: 'https://dev-t13zhs74oltgqtfx.us.auth0.com/api/v2/',
|
|
redirectUri: window.location.origin + '/dashboard.html',
|
|
logoutUri: window.location.origin
|
|
},
|
|
|
|
// API Configuration
|
|
api: {
|
|
baseUrl: '/api', // Proxied through Caddy
|
|
endpoints: {
|
|
me: '/users/me',
|
|
credits: '/users/credits',
|
|
apiKeys: '/users/api-keys',
|
|
health: '/health'
|
|
}
|
|
},
|
|
|
|
// App Configuration
|
|
app: {
|
|
name: 'Moxiegen',
|
|
version: '2.0.0'
|
|
}
|
|
};
|
|
|
|
// Freeze config to prevent modifications
|
|
Object.freeze(CONFIG);
|
|
Object.freeze(CONFIG.auth0);
|
|
Object.freeze(CONFIG.api);
|
|
Object.freeze(CONFIG.app);
|