Skip to content

Commit a52d6c4

Browse files
committed
remove build
1 parent d8b4389 commit a52d6c4

5 files changed

Lines changed: 10 additions & 58 deletions

File tree

.slugignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
/.git
2-
/.next/cache
1+
.git
2+
.gitignore
3+
.next/cache
4+
coverage
5+
*.log
6+
.env*

app/(iframes)/iframes/[tool]/[equivalent]/page.tsx

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,7 @@ import { categories } from 'data/categories'
33
import Equivalent from 'components/outils/equivalents/Equivalent'
44
import { equivalentsSimulators } from 'components/outils/equivalents/simulators/equivalentsSimulators'
55

6-
export async function generateStaticParams() {
7-
return categories.flatMap((category) =>
8-
category.equivalents
9-
? category.equivalents.flatMap((equivalent) =>
10-
equivalent.withCarpool
11-
? [
12-
{
13-
tool: category.slug,
14-
equivalent: equivalent.slug,
15-
},
16-
...Array.from({ length: 4 }).map((value, index) => ({
17-
tool: category.slug,
18-
equivalent: `${equivalent.slug}+${index + 1}`,
19-
carpool: index + 1,
20-
})),
21-
]
22-
: [
23-
{
24-
tool: category.slug,
25-
equivalent: equivalent.slug,
26-
},
27-
]
28-
)
29-
: []
30-
)
31-
}
6+
export const dynamic = 'force-dynamic'
327

338
type Props = {
349
params: Promise<{ tool: string; equivalent: string }>

app/(iframes)/iframes/[tool]/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import { simulators } from 'components/outils/simulators'
55
import { getCategory } from 'utils/category'
66

77
type Props = { params: Promise<{ tool: string }> }
8+
export const dynamic = 'force-dynamic'
89

9-
export async function generateStaticParams() {
10-
return categories.map((category) => ({ tool: category.slug }))
11-
}
1210

1311
const page = async (props: Props) => {
1412
const params = await props.params

app/(public)/outils/[tool]/[equivalent]/page.tsx

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,7 @@ import { equivalentsSimulators } from 'components/outils/equivalents/simulators/
66
import { getName } from 'utils/Equivalent/equivalent'
77
import Suggestion from 'components/layout/Suggestion'
88

9-
export async function generateStaticParams() {
10-
return categories.flatMap((category) =>
11-
category.equivalents
12-
? category.equivalents.flatMap((equivalent) =>
13-
equivalent.withCarpool
14-
? [
15-
{
16-
tool: category.slug,
17-
equivalent: equivalent.slug,
18-
},
19-
...Array.from({ length: 4 }).map((value, index) => ({
20-
tool: category.slug,
21-
equivalent: `${equivalent.slug}+${index + 1}`,
22-
carpool: index + 1,
23-
})),
24-
]
25-
: [
26-
{
27-
tool: category.slug,
28-
equivalent: equivalent.slug,
29-
},
30-
]
31-
)
32-
: []
33-
)
34-
}
9+
export const dynamic = 'force-dynamic'
3510

3611
type Props = {
3712
params: Promise<{ tool: string; equivalent: string }>

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)