Skip to content

Commit

Permalink
refactor(saas): Static blog slug page
Browse files Browse the repository at this point in the history
  • Loading branch information
alifarooq9 committed Apr 20, 2024
1 parent 7d37c67 commit 6adf19e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions starterkits/saas/src/app/(web)/blog/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { format } from "date-fns";
import Image from "next/image";
import { notFound, redirect } from "next/navigation";

export const dynamic = "force-static";

type BlogSlugPageProps = {
params: {
slug: string[];
Expand Down
2 changes: 2 additions & 0 deletions starterkits/saas/src/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Toc } from "@/components/toc";
import { getDocs } from "@/server/actions/docs";
import { siteUrls } from "@/config/urls";

export const dynamic = "force-static";

type DocsSlugPageProps = {
params: {
slug: string[];
Expand Down

0 comments on commit 6adf19e

Please sign in to comment.