File tree Expand file tree Collapse file tree
(public)/outils/[tool]/[equivalent] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /.git
2- /.next/cache
1+ .git
2+ .gitignore
3+ .next/cache
4+ coverage
5+ *.log
6+ .env*
Original file line number Diff line number Diff line change @@ -3,32 +3,7 @@ import { categories } from 'data/categories'
33import Equivalent from 'components/outils/equivalents/Equivalent'
44import { 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
338type Props = {
349 params : Promise < { tool : string ; equivalent : string } >
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import { simulators } from 'components/outils/simulators'
55import { getCategory } from 'utils/category'
66
77type 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
1311const page = async ( props : Props ) => {
1412 const params = await props . params
Original file line number Diff line number Diff line change @@ -6,32 +6,7 @@ import { equivalentsSimulators } from 'components/outils/equivalents/simulators/
66import { getName } from 'utils/Equivalent/equivalent'
77import 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
3611type Props = {
3712 params : Promise < { tool : string ; equivalent : string } >
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments