var APPS_BASE_PATH = void 0;
var API_BASE_PATH = void 0;
var PAGES_BASE_PATH = void 0;
var CF_DASHBOARD_BASE_PATH = void 0;
var environment = process.env.NODE_ENV || 'development';
if (typeof window !== 'undefined' && window.localStorage && window.localStorage.SABLE_ENV) {
    environment = window.localStorage.SABLE_ENV;
}
export var port = process.env.PORT || 9005;
if (environment === 'development') {
    APPS_BASE_PATH = 'https://local.cloudflareapps.com:9000/apps';
    // TODO: The current staging DB doesn't include any apps.
    // This should instead be regularly kept in sync with production.
    // API_BASE_PATH = 'https://api.cloudflareapps.com'
    API_BASE_PATH = 'https://api-staging.appstore.cfdata.org';
    PAGES_BASE_PATH = 'http://localhost:' + port + '/pages';
    CF_DASHBOARD_BASE_PATH = 'https://www.staging.cloudflare.com/a';
} else {
    APPS_BASE_PATH = 'https://cloudflare.com/apps';
    API_BASE_PATH = 'https://api.cloudflareapps.com';
    PAGES_BASE_PATH = 'https://cloudflare-apps.github.io/sable';
    CF_DASHBOARD_BASE_PATH = 'https://www.cloudflare.com/a';
}
var paths = {
    APPS_BASE_PATH: APPS_BASE_PATH,
    API_BASE_PATH: API_BASE_PATH,
    PAGES_BASE_PATH: PAGES_BASE_PATH,
    CF_DASHBOARD_BASE_PATH: CF_DASHBOARD_BASE_PATH
};
export { paths };
//# sourceMappingURL=routes.js.map