Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
connorrothschild committed Jan 2, 2024
1 parent 4a887b3 commit 9d93278
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/routes/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
import { base } from "$app/paths";

export async function load({ fetch }) {
const projectsJson = await fetch(`/projects.json`);
const projectsJson = await fetch(`/v4/projects.json`);
const projects = await projectsJson.json();

const postsJson = await fetch(`/posts.json`);
const postsJson = await fetch(`/v4/posts.json`);
const posts = await postsJson.json();

const awardsJson = await fetch(`/awards.json`);
const awardsJson = await fetch(`/v4/awards.json`);
const awards = await awardsJson.json();

return {
Expand Down
7 changes: 4 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ const config = {
preprocess: [vitePreprocess(), mdsvex(mdsvexConfig)],
kit: {
adapter: adapter({
// pages: "build/",
fallback: true,
fallback: "404.html",
pages: "build/",
// fallback: true,
}),
paths: {
base: process.env.NODE_ENV === "production" ? "/v4" : "",
base: process.env.NODE_ENV === "production" ? "/v4" : "/v4",
},
},
};
Expand Down

0 comments on commit 9d93278

Please sign in to comment.