Skip to content

Commit

Permalink
Merge pull request #10 from AI4Bharat/react-django
Browse files Browse the repository at this point in the history
Force Dynamic Test
  • Loading branch information
Shanks0465 authored Aug 30, 2024
2 parents 03f283b + 9aee4cd commit 56935ae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ next-env.d.ts

Caddyfile

.env
.env
out
2 changes: 1 addition & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const nextConfig = {
basePath: process.env.BASE_PATH || "",
output: "export",
distDir: "out",
eslint: {
ignoreDuringBuilds: true,
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/areas/model/[area]/[title]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { title } from "process";
import ModelView from "../../../../../../components/Models";

export const dynamicParams = true;
export const dynamic = "force-dynamic";

interface Model {
area: string;
Expand Down
9 changes: 8 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app/tools/[slug].js"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"src/app/tools/[slug].js",
"out/types/**/*.ts"
],
"exclude": ["node_modules"]
}

0 comments on commit 56935ae

Please sign in to comment.