Skip to content

Commit

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

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

Expand Down
2 changes: 1 addition & 1 deletion workspace/website/src/routes/docs/[slug]/Flank.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { Schema } from '../content.json/+server';
import type { Schema } from '$content/docs.json/+server';
export let flank: Schema['items'][number]['flank'];
</script>

Expand Down
4 changes: 4 additions & 0 deletions workspace/website/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const config = {
kit: {
adapter: adapter(),

alias: {
$content: './src/routes/content',
},

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

0 comments on commit 1c402ec

Please sign in to comment.