Skip to content

Commit dc21c04

Browse files
committed
Comment out dynamicParams and revalidate in page.tsx; disable output in next.config.ts for static export
1 parent c7a6bae commit dc21c04

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
output: 'export',
4+
// output: 'export',
55
};
66

77
export default nextConfig;

src/app/sfu/courses/[dept]/[number]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export async function generateStaticParams() {
2626
}
2727

2828
// With static export, only the paths from generateStaticParams are valid
29-
export const dynamicParams = false;
29+
// export const dynamicParams = false;
3030
// Ensure this route is fully static
31-
export const revalidate = false;
31+
// export const revalidate = false;
3232

3333
export default async function CoursePage({ params }: PageProps) {
3434
const resolvedParams = await params;

0 commit comments

Comments
 (0)