Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 28, 2024
1 parent 7bcc217 commit 8698f00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/[locale]/(frontend)/topic/[topic]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { Crumb } from "@/components/frontend/shared/crumb";
import { LocaleType } from "@/config";
import { getComponentMarkdown } from "@/i18n";
import { getOrigin } from "@/lib/utils";
import { getTopicName, styleMetadata } from "@/metadata";
import { getTopicName, topicMetadata } from "@/metadata";
import { TopicKey } from "@/slugs";
import { CrumbItem } from "@/types";
import { headers } from "next/headers";

export const runtime = 'edge';

export { styleMetadata as generateMetadata };
export { topicMetadata as generateMetadata };

export default async function Style({
export default async function Topic({
params
}: Readonly<{
params: { locale: LocaleType; topic: TopicKey; };
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/(frontend)/topic/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const runtime = 'edge';

export { topicMetadata as generateMetadata };

export default async function Style({
export default async function Index({
params
}: Readonly<{
params: { locale: LocaleType; };
Expand Down

0 comments on commit 8698f00

Please sign in to comment.