Skip to content

Commit

Permalink
Fix makefile for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Feb 7, 2024
1 parent fb733c1 commit a9fceb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ build-docs:

.PHONY: build-ui
build-ui:
# Patch for production
sed -i "s|createWebHistory('/')|createWebHistory('/wilford')|" ui/src/router/index.ts

docker build -t registry.mrfriendly.uk/wilford-ui ui/
2 changes: 1 addition & 1 deletion ui/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const routes = [
]

const router = createRouter({
history: createWebHistory('/'),
history: createWebHistory('/wilford'),
routes,
})

Expand Down

0 comments on commit a9fceb1

Please sign in to comment.