1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 14:46:04 +00:00

fix build

This commit is contained in:
mat 2023-06-16 18:49:36 -05:00
parent c433123462
commit 40caa42f4a
2 changed files with 15 additions and 3 deletions

View file

@ -1,13 +1,14 @@
import type { RequestHandler } from '@sveltejs/kit'
export const prerender = true
export const GET: RequestHandler = async ({ params }) => {
console.log(params.path)
let location = `/${params.path}`
if (params.path == 'minecraft-server-warner') {
location = '/matscan'
}
return new Response(null, {
status: 302,
status: 301,
headers: {
Location: location,
},

View file

@ -19,7 +19,18 @@ const config = {
kit: {
adapter: staticAdapter({}),
prerender: {
entries: ['*', '/minecraft-scanning/minecraft-server-background.png'],
entries: [
'*',
'/minecraft-scanning/minecraft-server-background.png',
// redirect /blog/* to /*
'/blog/matdoes-dev-markdown',
'/blog/minecraft-server-warner',
'/blog/minecraft-scanning',
'/blog/the-story-of-reportscammers',
'/blog/uncovering-the-discord-twitch-bots',
'/blog/what-are-domain-hacks',
'/blog/who-is-mat',
],
},
},
}