removed unnecessary entrypoint code

This commit is contained in:
2024-06-13 22:48:55 +02:00
parent 3936d1c651
commit 6f9933f332
3 changed files with 4 additions and 4 deletions

View File

@@ -23,4 +23,4 @@ RUN chmod +x entrypoint.sh
COPY --from=builder /source/build /usr/share/nginx/html
ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.s"]

View File

@@ -4,11 +4,11 @@ import getConfig from "../config/config";
const config = getConfig();
const keycloak = new Keycloak({
url: config.REACT_APP_KC_HOSTNAME || process.env.REACT_APP_KC_HOSTNAME,
url: config.REACT_APP_KC || process.env.REACT_APP_KC,
realm: "Jodel",
clientId: "jodel-frontend",
});
keycloak.init({ onLoad: 'login-required' }).then((authenticated) => {});
//keycloak.init({ onLoad: 'login-required' }).then((authenticated) => {});
export default keycloak;

View File

@@ -4,7 +4,7 @@ import keycloak from "../Authentification/Keycloak";
import getConfig from "../config/config";
const config = getConfig();
const path = config.REACT_APP_API_HOSTNAME || process.env.REACT_APP_API_HOSTNAME;
const path = config.REACT_APP_API || process.env.REACT_APP_API;
export const postApi = {
async getPostsByCoords (lat, lon) {