1
0
Fork 0
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:
mat 2023-08-12 23:32:47 -05:00
parent 058f004c53
commit e6030ab4c0

View file

@ -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',
},
}
)
}