mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
851 B
34 lines
851 B
|
|
const yourIP = 'Your Local IP Address etc 192.168.1.64'; // See the docs https://docs.abp.io/en/abp/latest/Getting-Started-React-Native?Tiered=No
|
|
const port = 44305;
|
|
const apiUrl = `http://${yourIP}:${port}`;
|
|
const ENV = {
|
|
dev: {
|
|
apiUrl: apiUrl,
|
|
oAuthConfig: {
|
|
issuer: apiUrl,
|
|
clientId: 'MyProjectName_App',
|
|
scope: 'offline_access MyProjectName',
|
|
},
|
|
localization: {
|
|
defaultResourceName: 'MyProjectName',
|
|
},
|
|
},
|
|
prod: {
|
|
apiUrl: 'http://localhost:44305',
|
|
oAuthConfig: {
|
|
issuer: 'http://localhost:44305',
|
|
clientId: 'MyProjectName_App',
|
|
scope: 'offline_access MyProjectName',
|
|
},
|
|
localization: {
|
|
defaultResourceName: 'MyProjectName',
|
|
},
|
|
},
|
|
};
|
|
|
|
export const getEnvVars = () => {
|
|
// eslint-disable-next-line no-undef
|
|
return __DEV__ ? ENV.dev : ENV.prod;
|
|
};
|