Skip to content

Commit

Permalink
what does it says
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Jan 16, 2024
1 parent 9f17d14 commit fbfad28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion workspace/website/src/routes/docs/[slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { error } from '@sveltejs/kit';

export async function load({ fetch, params }) {
const res = await fetch('/docs/content.json');
if (!res.ok) error(500, 'Could not load content');
// @ts-ignore - see what this results in
if (!res.ok) error(res.status, res.statusText);

const { items, metadata }: Schema = await res.json();
const docs = items.find(({ slug }) => slug === params.slug);
Expand Down
4 changes: 1 addition & 3 deletions workspace/website/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({
split: true,
}),
adapter: adapter(),

typescript: {
config: (settings) => ({ extends: 'mauss/tsconfig.json', ...settings }),
Expand Down

0 comments on commit fbfad28

Please sign in to comment.