Skip to content

Commit

Permalink
copy index.html after build
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Mar 27, 2024
1 parent 3ed2af9 commit 456ecd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-to-ghp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
run: npm ci
- name: Build
run: npm run build
- name: Make 404.html
# We make a copy of the built index.html file as the 404 page, to support direct navigation to front end (vue
# router) routes that the server doesn't know about
run: cp dist/index.html dist/404.html
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<v-app>
<v-app-bar :absolute="true">
<v-app-bar density="compact">
<router-link to="/">
<v-app-bar-title>{{ appConfig?.title }}</v-app-bar-title>
<v-app-bar-title class="ml-2">{{ appConfig?.title }}</v-app-bar-title>
</router-link>
<v-spacer></v-spacer>
<router-link to="/about">
Expand Down

0 comments on commit 456ecd9

Please sign in to comment.