perf: avoid layout re-rendering

This commit is contained in:
Riccardo
2024-01-25 18:12:37 +01:00
parent 551bff815f
commit dbefdc49e2
15 changed files with 137 additions and 135 deletions

View File

@@ -1,12 +1,11 @@
import { z } from 'zod';
import { NewsSchema } from '../../utils/schemas';
import { sayings } from './helpers/newsletterSayings';
import { sayings } from './helpers/sayings';
import Template from './template';
export default function NewsletterTemplate(
stories: z.infer<typeof NewsSchema>[]
) {
return {
subject: `What's new from the Hackernews forum?`,
template: (