mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 23:44:39 +00:00
prerender blog.rss
This commit is contained in:
parent
c871280c8b
commit
74ddf393aa
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
import type { RequestHandler } from '@sveltejs/kit'
|
||||
import { getPosts, type BlogPostPreview } from '../blog.json/+server'
|
||||
|
||||
export const prerender = true
|
||||
|
||||
export const GET: RequestHandler = async () => {
|
||||
const posts = await getPosts()
|
||||
function item(post: BlogPostPreview) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue