Skip to content

Commit

Permalink
Add basepath. Edit github config
Browse files Browse the repository at this point in the history
  • Loading branch information
brodysmith1 committed Nov 16, 2023
1 parent 536a3e2 commit 04df9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { base } from "$app/paths"
import { farmGrid, gameState, successMetrics } from "$lib/stores/state"
import Farm from "$lib/components/Farm.svelte"
Expand All @@ -12,7 +13,7 @@
<main>
<div class="panel panel-controls">
<header class="flex justify-between">
<img width="100" src="/brand/logo.png" alt="The Plotline Logo" />
<img width="100" src="{base}/brand/logo.png" alt="The Plotline Logo" />
<Button
onClick={() => {
$farmGrid.grid = $farmGrid.initialGrid
Expand Down
4 changes: 1 addition & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const config = {
preprocess: vitePreprocess(),

kit: {
adapter: adapter({
fallback: '404.html'
}),
adapter: adapter(),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
}
Expand Down

0 comments on commit 04df9fb

Please sign in to comment.