Skip to content

Commit

Permalink
Add preconnect hints for API and Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoerner committed Oct 3, 2024
1 parent 6c830e7 commit 845b1f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
run: npm ci
- name: Run tests
run: npm run test
- name: Bild project
run: npm run build --if-present
- name: Build project
run: npm run build --if-present
env:
VITE_API_BASE_URL: dummy
VITE_KEYCLOAK_URL: dummy
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<meta name="theme-color" content="#000000" />
<meta name="description" content="Bannergress" />

<link rel="preconnect" href="%VITE_API_BASE_URL%">
<link rel="preconnect" href="%VITE_KEYCLOAK_URL%">

<!-- generics favicons -->
<link rel="icon" href="/favicons/favicon-32.png" sizes="32x32">
<link rel="icon" href="/favicons/favicon-57.png" sizes="57x57">
Expand Down

0 comments on commit 845b1f2

Please sign in to comment.