Skip to content

Commit

Permalink
Update +page.ts to not require PUBLIC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith authored Aug 1, 2023
1 parent 2ec8aed commit a624099
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/routes/profile/+page.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import type { PageLoad } from './$types';
import { LANGUAGES } from '../../constants';
import { PUBLIC_URL } from '$env/static/public';
import { marked } from 'marked';

export const load = (async ({ fetch }) => {
const res = await fetch(`/legal/terms.md`);
const termsText = await res.text();
return {
LANGUAGES,
PUBLIC_URL,
terms: marked.parse(termsText, {
mangle: false,
headerIds: false
Expand Down

0 comments on commit a624099

Please sign in to comment.