File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ import {
18
18
} from "@/components/ui/pagination" ;
19
19
20
20
import { Section , Container , Prose } from "@/components/craft" ;
21
- import { Metadata } from "next" ;
22
21
import { PostCard } from "@/components/posts/post-card" ;
23
22
import { FilterPosts } from "@/components/posts/filter" ;
24
23
import { SearchInput } from "@/components/posts/search-input" ;
25
24
25
+ import type { Metadata } from "next" ;
26
+
26
27
export const metadata : Metadata = {
27
28
title : "Blog Posts" ,
28
29
description : "Browse all our blog posts" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import querystring from "query-string";
6
6
import { revalidateTag } from "next/cache" ;
7
7
import { headers } from "next/headers" ;
8
8
9
- import {
9
+ import type {
10
10
Post ,
11
11
Category ,
12
12
Tag ,
@@ -435,9 +435,9 @@ export async function searchAuthors(query: string): Promise<Author[]> {
435
435
// Helper function to revalidate WordPress data
436
436
export async function revalidateWordPressData ( tags : string [ ] = [ "wordpress" ] ) {
437
437
try {
438
- tags . forEach ( ( tag ) => {
438
+ for ( const tag of tags ) {
439
439
revalidateTag ( tag ) ;
440
- } ) ;
440
+ }
441
441
} catch ( error ) {
442
442
console . error ( "Failed to revalidate WordPress data:" , error ) ;
443
443
throw new Error ( "Failed to revalidate WordPress data" ) ;
You can’t perform that action at this time.
0 commit comments