Skip to content

Commit

Permalink
Fix asset URLs in local development
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemonteith committed Apr 16, 2024
1 parent 4721764 commit 162ee3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
node-version: '20'
- run: npm ci
- run: BASE_URL="/nhsapp-frontend" npm run build:docs
- run: BASE_URL="/nhsapp-frontend/" npm run build:docs
- uses: actions/upload-pages-artifact@v3
with:
path: 'dist/docs'
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

<link href="{{baseUrl}}/assets/nhsuk.css" rel="stylesheet" />
<link href="{{baseUrl}}/assets/nhsapp.css" rel="stylesheet" />
<link href="{{baseUrl}}assets/nhsuk.css" rel="stylesheet" />
<link href="{{baseUrl}}assets/nhsapp.css" rel="stylesheet" />
</head>
<body>
{% block header %}
Expand Down

0 comments on commit 162ee3e

Please sign in to comment.