Skip to content

Commit

Permalink
Implement VITE_API_DOMAIN variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ashermorgan committed Aug 11, 2024
1 parent bd7a459 commit dc77040
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# No specific domain by default
VITE_API_DOMAIN=
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<meta property="og:title" content="Running Tools"/>
<meta property="og:description" content="A collection of tools for runners and their coaches that calculate splits, predict race times, convert units, and more"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://ashermorgan.github.io/running-tools/"/>
<meta property="og:image" content="https://ashermorgan.github.io/running-tools/img/icons/open-graph-1280x640.png"/>
<meta property="og:url" content="%VITE_API_DOMAIN%%BASE_URL%"/>
<meta property="og:image" content="%VITE_API_DOMAIN%%BASE_URL%img/icons/open-graph-1280x640.png"/>

<!-- Microsoft tags -->
<meta name="msapplication-square70x70logo" content="%BASE_URL%img/icons/mstile-icon-128x128.png">
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# abort on errors
set -e

BASE_URL=/running-tools/ npm run build
VITE_API_DOMAIN=https://ashermorgan.github.io BASE_URL=/running-tools/ npm run build

cd dist

Expand Down

0 comments on commit dc77040

Please sign in to comment.