Skip to content

Commit 8d2e9e5

Browse files
authored
ISR OG cards (#713)
1 parent 223ed4f commit 8d2e9e5

File tree

1 file changed

+6
-1
lines changed
  • apps/svelte.dev/src/routes/blog/[slug]/card.png

1 file changed

+6
-1
lines changed

apps/svelte.dev/src/routes/blog/[slug]/card.png/+server.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ import Card from './Card.svelte';
88
import DMSerifDisplay from './DMSerifDisplay-Regular.ttf?url';
99
import FiraSans from './FiraSans-Regular.ttf?url';
1010
import { blog_posts } from '$lib/server/content';
11+
import type { ServerlessConfig } from '@sveltejs/adapter-vercel';
1112

12-
export const prerender = true;
13+
export const config: ServerlessConfig = {
14+
isr: {
15+
expiration: false
16+
}
17+
};
1318

1419
export function entries() {
1520
return blog_posts.map((post) => ({

0 commit comments

Comments
 (0)