Skip to content

Commit 1b31054

Browse files
committed
chore: avoid static page generation
1 parent c4e1a52 commit 1b31054

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

app/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = "force-dynamic";
2+
13
import { redirect } from "next/navigation";
24
export default async function Home() {
35
redirect("/reports");

app/profile/[address]/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = "force-dynamic";
2+
13
import { Settings2 } from "lucide-react";
24
import Link from "next/link";
35

app/reports/[slug]/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = "force-dynamic";
2+
13
import FundingDataWrapper from "@/components/report-details/funding-data-wrapper";
24
import FundingProgress from "@/components/report-details/funding-progress";
35
import ReportSidebar from "@/components/report-details/report-sidebar";

app/reports/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const dynamic = "force-dynamic";
2+
13
import Image from "next/image";
24

35
import hero from "@/assets/hero_img.webp";

next.config.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const nextConfig = {
33
typescript: {
44
ignoreBuildErrors: true,
55
},
6+
7+
staticPageGenerationTimeout: 300,
8+
69
webpack: (config) => {
710
config.externals.push("pino-pretty", "lokijs", "encoding");
811
return config;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7-
"build": "next build",
7+
"build": "next build --debug",
88
"start": "next start",
99
"lint": "biome check --apply ./app",
1010
"typecheck": "tsc -p tsconfig.json --noEmit",

0 commit comments

Comments
 (0)