From 117f72e7dca1eb58db42f172b5ae419884cbe94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Gei=C3=9Fler?= Date: Sun, 3 Mar 2024 10:44:01 +0100 Subject: [PATCH] added security.txt, gitattributes --- .gitattributes | 4 ++++ src/routes/[...slug]/+page.server.ts | 3 --- static/security.txt | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .gitattributes create mode 100644 static/security.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3c32447 --- /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 8e619a8..b88097f 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 0000000..f1d8fa1 --- /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