[READ-ONLY] Mirror of https://github.com/mrgnw/morganwill.com. morganwill.com
0

Configure Feed

Select the types of activity you want to include in your feed.

Revert "sveltekit-sitemap"

This reverts commit 64714294897119f27addcd2b292c01e2b9c5e52b.

+7 -33
bun.lockb

This is a binary file and will not be displayed.

-1
package.json
··· 32 32 "clsx": "^2.1.0", 33 33 "lucide-svelte": "^0.353.0", 34 34 "qrcode": "^1.5.4", 35 - "sveltekit-sitemap": "^1.0.21", 36 35 "tailwind-merge": "^2.2.1", 37 36 "tailwind-variants": "^0.2.0", 38 37 "unplugin-icons": "^0.19.3"
-22
src/hooks.server.js
··· 1 - import { sitemapHook } from 'sveltekit-sitemap'; 2 - import { sitemap } from './sitemap'; 3 - 4 - export const handle = sitemapHook(sitemap, { 5 - getOrigin: (event) => `https://${event.request.headers.get('host')}`, 6 - getRoutes: async (event) => { 7 - return { 8 - "/": { 9 - path: "/", 10 - priority: "1.0", 11 - changeFreq: "weekly" 12 - } 13 - }; 14 - }, 15 - getRobots: async (event) => ({ 16 - userAgent: "*", 17 - crawlDelay: 1000, 18 - paths: { 19 - "/": true 20 - } 21 - }) 22 - });
+1 -1
src/routes/robots.txt/+server.ts
··· 1 1 import type { RequestHandler } from "@sveltejs/kit"; 2 2 3 - export const prerender = true; 3 + // export const prerender = true; 4 4 5 5 export const GET: RequestHandler = async ({ url }) => { 6 6 const hostname = url.hostname;
-3
src/sitemap.js
··· 1 - export const sitemap = { 2 - excludePatterns: [] 3 - };
+6 -6
vite.config.js
··· 3 3 import Icons from 'unplugin-icons/vite' 4 4 5 5 export default defineConfig({ 6 - plugins: [ 7 - sveltekit(), 8 - Icons({ 9 - compiler: 'svelte', 10 - }) 11 - ] 6 + plugins: [ 7 + sveltekit(), 8 + Icons({ 9 + compiler: 'svelte', 10 + }) 11 + ] 12 12 })