mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
don't minify /.json
This commit is contained in:
parent
058f004c53
commit
e6030ab4c0
1 changed files with 24 additions and 9 deletions
|
@ -5,13 +5,28 @@ export const prerender = true
|
|||
// this page exists so requesting the website with Accept: application/json works
|
||||
|
||||
export const GET: RequestHandler = async ({}) => {
|
||||
return json({
|
||||
title: 'matdoesdev',
|
||||
description: [
|
||||
"I'm mat, I do full-stack software development.",
|
||||
"This portfolio contains my blog posts and links to some of the projects I've made.",
|
||||
],
|
||||
socials: ['//github.com/mat-1"', '//matrix.to/#/@mat:matdoes.dev', '//ko-fi.com/matdoesdev'],
|
||||
links: ['/blog', '/projects'],
|
||||
})
|
||||
return new Response(
|
||||
JSON.stringify(
|
||||
{
|
||||
title: 'matdoesdev',
|
||||
description: [
|
||||
"I'm mat, I do full-stack software development.",
|
||||
"This portfolio contains my blog posts and links to some of the projects I've made.",
|
||||
],
|
||||
socials: [
|
||||
'//github.com/mat-1"',
|
||||
'//matrix.to/#/@mat:matdoes.dev',
|
||||
'//ko-fi.com/matdoesdev',
|
||||
],
|
||||
links: ['/blog', '/projects'],
|
||||
},
|
||||
null,
|
||||
2
|
||||
),
|
||||
{
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue