mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-01-21 10:53:23 +01:00
Mastermindzh
3db77f96b9
- Added an example with trucks and basic fetch in useEffect on page load - Added simply test to see whether any data is displayed (and shows the interceptor) Introduced "CypressStrictMode" which wraps React.StrictMode and checks whether Cypress is involved, if so disable StrictMode.
39 lines
1000 B
JavaScript
39 lines
1000 B
JavaScript
const defaultConfig = {
|
|
version: "0.1.0",
|
|
name: "React-starter-kit",
|
|
services: {
|
|
fake: {
|
|
root: "http://localhost:9600/fake",
|
|
trucks: "trucks",
|
|
},
|
|
},
|
|
// oidc: {
|
|
// url: "private_url",
|
|
// realm: "inforit",
|
|
// clientId: "react-base",
|
|
// scope: "openid profile email",
|
|
// redirectUri: "http://localhost:3000/authentication/callback",
|
|
// silentRedirectUri: "http://localhost:3000/authentication/silent-callback",
|
|
// serviceWorkerOnly: false,
|
|
// },
|
|
oidc: {
|
|
url: "https://sso.mastermindzh.tech/realms/public-tests",
|
|
realm: "public-tests",
|
|
clientId: "react-starter-kit",
|
|
scope: "openid profile email",
|
|
redirectUri: "http://localhost:3000/authentication/callback",
|
|
silentRedirectUri: "http://localhost:3000/authentication/silent-callback",
|
|
serviceWorkerOnly: false,
|
|
},
|
|
};
|
|
|
|
// ignore this :)
|
|
try {
|
|
window.defaultConfig = defaultConfig;
|
|
if (module) {
|
|
module.exports = defaultConfig;
|
|
}
|
|
} catch {
|
|
// ignore
|
|
}
|