Added new config for runner
Some checks failed
/ Deploy to Cloudflare Pages (push) Failing after 33s
Some checks failed
/ Deploy to Cloudflare Pages (push) Failing after 33s
This commit is contained in:
@ -2,7 +2,7 @@ import rss from "@astrojs/rss";
|
|||||||
import type { APIRoute } from "astro";
|
import type { APIRoute } from "astro";
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
||||||
export const get: APIRoute = async function get({ site }) {
|
export const get: APIRoute = async function get({ site }: any) {
|
||||||
const posts = await getCollection("blog");
|
const posts = await getCollection("blog");
|
||||||
const items = posts.map(({ data: { image, title, exerpt, date }, slug }) => ({
|
const items = posts.map(({ data: { image, title, exerpt, date }, slug }) => ({
|
||||||
title,
|
title,
|
||||||
|
Reference in New Issue
Block a user