diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..3c324470 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto + +*.png binary +*.jpg binary \ No newline at end of file diff --git a/src/routes/[...slug]/+page.server.ts b/src/routes/[...slug]/+page.server.ts index 8e619a8e..b88097f9 100644 --- a/src/routes/[...slug]/+page.server.ts +++ b/src/routes/[...slug]/+page.server.ts @@ -2,9 +2,6 @@ import { fetch_page } from '$lib/fetch' import { error } from '@sveltejs/kit' export const load = async ({ params }) => { - // delegate route to static/robots.txt - // is this check necessary, will prob fallthrough anyway - if (params.slug === `robots.txt`) throw error(404) const page = await fetch_page(params.slug) diff --git a/static/security.txt b/static/security.txt new file mode 100644 index 00000000..f1d8fa1e --- /dev/null +++ b/static/security.txt @@ -0,0 +1,3 @@ +Contact: mailto:it@studytutors.de +Expires: 2030-01-01T11:00:00.000Z +Preferred-Languages: en,de \ No newline at end of file