Skip to content

Commit

Permalink
Set Vite basedir to /2023 for Directory build
Browse files Browse the repository at this point in the history
I guess React/Vite/whatever expects to be served from / by default, this change sets the build:vite script in package.json to "tsc && vite build --base=/2023" (didn't actually commit that change so that the website can still be built from / for normal builds)
  • Loading branch information
jmshrv committed Aug 29, 2024
1 parent 1595418 commit 374e131
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions public/2023/directory/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@

<ul>
<li>
<a href="/">2024</a>
<a href="../2023">October 2023</a>
<a href="https://hn84.devpost.com/">(Devpost)</a>
</li>

<li>
<a href="../2022">2023</a>
<a href="../2022">February 2023</a>
<a href="https://hn23.devpost.com/">(Devpost)</a>
</li>

Expand Down Expand Up @@ -68,4 +69,4 @@
</footer>
</div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions public/2023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en" data-bs-theme="micro">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="/2023/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HackNotts 2024</title>

Expand Down Expand Up @@ -30,8 +30,8 @@
}(window.location))
</script>
<!-- End Single Page Apps for GitHub Pages -->
<script type="module" crossorigin src="/assets/index-43228297.js"></script>
<link rel="stylesheet" href="/assets/index-1fa2681a.css">
<script type="module" crossorigin src="/2023/assets/index-4d556c96.js"></script>
<link rel="stylesheet" href="/2023/assets/index-ce59466c.css">
</head>
<body>
<div id="root"></div>
Expand Down

0 comments on commit 374e131

Please sign in to comment.