mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
changed redirect on netlify
This commit is contained in:
@@ -3,6 +3,7 @@ FROM alpine:latest as build
|
|||||||
ENV REACT_APP_FIREBASE_API_KEY = ${REACT_APP_FIREBASE_API_KEY}
|
ENV REACT_APP_FIREBASE_API_KEY = ${REACT_APP_FIREBASE_API_KEY}
|
||||||
ENV REACT_APP_FIREBASE_APP_ID = ${REACT_APP_FIREBASE_APP_ID}
|
ENV REACT_APP_FIREBASE_APP_ID = ${REACT_APP_FIREBASE_APP_ID}
|
||||||
ENV REACT_APP_ENVIRONMENT = ${REACT_APP_ENVIRONMENT}
|
ENV REACT_APP_ENVIRONMENT = ${REACT_APP_ENVIRONMENT}
|
||||||
|
ENV DEPLOY_SERVICE = ${DEPLOY_SERVICE}
|
||||||
|
|
||||||
RUN apk add --update nodejs npm
|
RUN apk add --update nodejs npm
|
||||||
RUN npm install --global yarn
|
RUN npm install --global yarn
|
||||||
@@ -12,6 +13,7 @@ WORKDIR /usr/src
|
|||||||
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
RUN if [[ DEPLOY_SERVICE !== caprover ]]; then echo '/* https://clockify-pomodoro-timer.franp.site 200' | cat >build/_redirects fi
|
||||||
|
|
||||||
FROM nginx:1.23.1-alpine
|
FROM nginx:1.23.1-alpine
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ services:
|
|||||||
- REACT_APP_FIREBASE_API_KEY: {REACT_APP_FIREBASE_API_KEY}
|
- REACT_APP_FIREBASE_API_KEY: {REACT_APP_FIREBASE_API_KEY}
|
||||||
- REACT_APP_FIREBASE_APP_ID: {REACT_APP_FIREBASE_APP_ID}
|
- REACT_APP_FIREBASE_APP_ID: {REACT_APP_FIREBASE_APP_ID}
|
||||||
- REACT_APP_ENVIRONMENT: {REACT_APP_ENVIRONMENT}
|
- REACT_APP_ENVIRONMENT: {REACT_APP_ENVIRONMENT}
|
||||||
|
- DEPLOY_SERVICE: {DEPLOY_SERVICE}
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build --openssl-legacy-provider && echo '/* /index.html 200' | cat >build/_redirects",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user