diff --git a/.prettierrc.json b/.prettierrc.json index f6b149f..7cac555 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,5 @@ { - "singleQuote": true, - "arrowParens": "avoid", - "printWidth": 100 -} \ No newline at end of file + "singleQuote": true, + "arrowParens": "avoid", + "trailingComma": "all" +} diff --git a/app/[...all]/page.tsx b/app/[...all]/page.tsx index 044dbe8..defd15b 100644 --- a/app/[...all]/page.tsx +++ b/app/[...all]/page.tsx @@ -1,11 +1,17 @@ import dynamic from 'next/dynamic'; +import { lists } from '../../mock'; const App = dynamic(() => import('../../components/AppShell'), { ssr: false, }); -export function generateStaticParams() { - return [{ all: ['tabs', 'feed'] }]; +export async function generateStaticParams() { + return [ + { all: ['feed'] }, + { all: ['lists'] }, + ...lists.map(list => ({ all: ['lists', list.id] })), + { all: ['settings'] }, + ]; } export default function Page() { diff --git a/app/layout.tsx b/app/layout.tsx index ef93351..37398e2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -40,8 +40,16 @@ export default function RootLayout({ return ( {children} -