:recycle: use PUBLIC_URL
Hadrien Froger hadrien@octree.ch
Thu, 23 Jul 2020 06:10:24 +0100
2 files changed,
7 insertions(+),
7 deletions(-)
M
.gitlab-ci.yml
→
.gitlab-ci.yml
@@ -30,7 +30,7 @@ Build:
stage: build image: docker:stable-git environment: - REACT_APP_URL: $ENV_URL + PUBLIC_URL: $ENV_URL rules: - if: '$CI_COMMIT_REF_NAME == "master"' script:
M
app/public/index.html
→
app/public/index.html
@@ -10,7 +10,7 @@ />
<meta name="theme-color" content="#000000" /> <meta property="og:site_name" content="Caroster" /> <meta property="og:title" content="Caroster - Covoiturage de groupe" /> - <meta property="og:url" content="%REACT_APP_URL%" /> + <meta property="og:url" content="%PUBLIC_URL%" /> <meta property="og:type" content="website" /> <meta property="og:description"@@ -18,7 +18,7 @@ content="Covoiturez à un événement en proposant une voiture ou en prenant une place."
/> <meta property="og:image" - content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" + content="%PUBLIC_URL%/Caroster_Octree_Social.jpg" /> <meta property="og:image:width" content="1500" /> <meta property="og:image:height" content="843" />@@ -26,14 +26,14 @@ <meta itemprop="name" content="Caroster - Covoiturage de groupe" />
<meta itemprop="url" content="https://app.caroster.io" /> <meta itemprop="thumbnailUrl" - content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" + content="%PUBLIC_URL%/Caroster_Octree_Social.jpg" /> - <link rel="image_src" href="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> - <meta itemprop="image" content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" /> + <link rel="image_src" href="%PUBLIC_URL%/Caroster_Octree_Social.jpg" /> + <meta itemprop="image" content="%PUBLIC_URL%/Caroster_Octree_Social.jpg" /> <meta name="twitter:title" content="Caroster - Covoiturage de groupe" /> <meta name="twitter:image" - content="%REACT_APP_URL%/Caroster_Octree_Social.jpg" + content="%PUBLIC_URL%/Caroster_Octree_Social.jpg" /> <meta name="twitter:url" content="https://app.caroster.io" /> <meta name="twitter:card" content="summary" />