Skip to content

Commit

Permalink
added security.txt, gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikgeissler committed Mar 3, 2024
1 parent 6347b55 commit 117f72e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto

*.png binary
*.jpg binary
3 changes: 0 additions & 3 deletions src/routes/[...slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions static/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Contact: mailto:[email protected]
Expires: 2030-01-01T11:00:00.000Z
Preferred-Languages: en,de

0 comments on commit 117f72e

Please sign in to comment.