From d344175a873f28f33208a469114f2b32033cb3ec Mon Sep 17 00:00:00 2001 From: Umashankar Kumaravelan <48712410+Shanks0465@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:16:13 +0530 Subject: [PATCH] Revert "Force Dynamic Test" --- frontend/.gitignore | 3 +-- frontend/next.config.mjs | 2 +- frontend/src/app/areas/model/[area]/[title]/page.tsx | 2 +- frontend/tsconfig.json | 9 +-------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/frontend/.gitignore b/frontend/.gitignore index e6e6a00..c24664c 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -37,5 +37,4 @@ next-env.d.ts Caddyfile -.env -out \ No newline at end of file +.env \ No newline at end of file diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 72af7b0..b85dbe9 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -1,6 +1,6 @@ const nextConfig = { basePath: process.env.BASE_PATH || "", - distDir: "out", + output: "export", eslint: { ignoreDuringBuilds: true, }, diff --git a/frontend/src/app/areas/model/[area]/[title]/page.tsx b/frontend/src/app/areas/model/[area]/[title]/page.tsx index ce1ea4c..fd837c4 100644 --- a/frontend/src/app/areas/model/[area]/[title]/page.tsx +++ b/frontend/src/app/areas/model/[area]/[title]/page.tsx @@ -1,7 +1,7 @@ import { title } from "process"; import ModelView from "../../../../../../components/Models"; -export const dynamic = "force-dynamic"; +export const dynamicParams = true; interface Model { area: string; diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 2d15989..f58a4a3 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -21,13 +21,6 @@ "@/*": ["./src/*"] } }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - "src/app/tools/[slug].js", - "out/types/**/*.ts" - ], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app/tools/[slug].js"], "exclude": ["node_modules"] }