Skip to content

Commit

Permalink
fix: add force-dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbao-dev committed Mar 9, 2024
1 parent 9bf8a3e commit 9483a3a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/(app)/(auth)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { getUserAuth } from "@/auth/auth-guard"
import { redirect } from "next/navigation"

// TODO: Replace Auth with Wallet Connect
export const dynamic = "force-dynamic"

export default async function AuthLayout({
children,
}: {
Expand Down
2 changes: 2 additions & 0 deletions app/(app)/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { getUserAuth } from "@/auth/auth-guard"
import { DashboardSidebar } from "@/components/dashboard/dashboard-sidebar"
import { redirect } from "next/navigation"

export const dynamic = "force-dynamic"

export default async function DashboardLayout({
children,
}: {
Expand Down
2 changes: 2 additions & 0 deletions app/(app)/projects/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { getProjectBySlugAction } from "@/server-actions/projects/projects.actions"

export const dynamic = "force-dynamic"

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { appMetadata } from "@/config/meteada.config"
import { getAllProjectsAction } from "@/server-actions/projects/projects.actions"
import { Metadata } from "next"

export const revalidate = 1
export const dynamic = "force-dynamic"

export const metadata: Metadata = {
...appMetadata.projects,
Expand Down

0 comments on commit 9483a3a

Please sign in to comment.