Skip to content

Commit

Permalink
Test again
Browse files Browse the repository at this point in the history
  • Loading branch information
connorrothschild committed Jan 2, 2024
1 parent 28f5f0f commit 2279cd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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(`${base}/projects.json`);
const projectsJson = await fetch(`/projects.json`);
const projects = await projectsJson.json();

const postsJson = await fetch(`${base}/posts.json`);
const postsJson = await fetch(`/posts.json`);
const posts = await postsJson.json();

const awardsJson = await fetch(`${base}/awards.json`);
const awardsJson = await fetch(`/awards.json`);
const awards = await awardsJson.json();

return {
Expand Down
9 changes: 4 additions & 5 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ import { mdsvex } from "mdsvex";
import { mdsvexConfig } from "./mdsvex.config.js";
import vitePreprocess from "svelte-preprocess";
import { sveltekit } from "@sveltejs/kit/vite";
// import adapter from "@sveltejs/adapter-static";
import adapter from "@sveltejs/adapter-static";

/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
extensions: [".svelte", ...mdsvexConfig.extensions],
preprocess: [vitePreprocess(), mdsvex(mdsvexConfig)],
kit: {
// adapter: adapter({
// pages: "build",
// fallback: "404.html",
// }),
adapter: adapter({
pages: "build/",
}),
paths: {
base: process.env.NODE_ENV === "production" ? "/v4" : "",
},
Expand Down

0 comments on commit 2279cd4

Please sign in to comment.