File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
apps/next/app/(generated)/bio/[slug] Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 11'use client'
22// -i- Automatically generated by 'yarn link-routes', do not modify manually
3- export { default , dynamic , generateStaticParams } from 'links-page/routes/bio/[slug]'
3+ export { default , dynamic } from 'links-page/routes/bio/[slug]'
Original file line number Diff line number Diff line change 11/* eslint-disable @next/next/no-img-element */
22import React from 'react'
3- import { ImageResponse } from 'next/server '
3+ import { ImageResponse } from 'next/og '
44
55/* --- Segments -------------------------------------------------------------------------------- */
66
Original file line number Diff line number Diff line change @@ -269,9 +269,11 @@ export const ResumeScreenRouteDataConfig = {
269269// -i- https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
270270export const dynamic = 'force-static' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
271271
272- export const generateStaticParams = async ( ) : Promise < TResumeScreenParams [ ] > => {
273- return [ { slug : 'codinsonn' } ]
274- }
272+ // TODO: Figure out how to generate static params in Next.js 14 while also needing to use client components
273+ // -!- Error: Page "/(generated)/bio/[slug]/page" cannot use both "use client" and export function "generateStaticPar...()".
274+ // export const generateDisabledStaticParams = async (): Promise<TResumeScreenParams[]> => {
275+ // return [{ slug: 'codinsonn' }]
276+ // }
275277
276278/* --- <ResumeScreen/> ------------------------------------------------------------------------- */
277279
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ const PageScreen = (props: bioScreen.BioScreenProps) => (
1313/* --- Exports --------------------------------------------------------------------------------- */
1414
1515export const dynamic = bioScreen . dynamic
16- export const generateStaticParams = bioScreen . generateStaticParams
16+ // export const generateDisabledStaticParams = bioScreen.generateDisabledStaticParams
1717
1818export default PageScreen
Original file line number Diff line number Diff line change @@ -102,9 +102,11 @@ export const screenConfig = {
102102
103103export const dynamic = 'force-static' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
104104
105- export const generateStaticParams = async ( ) : Promise < BioScreenParams [ ] > => {
106- return [ { slug : 'codinsonn' } ]
107- }
105+ // TODO: Figure out how to generate static params in Next.js 14 while also needing to use client components
106+ // -!- Error: Page "/(generated)/bio/[slug]/page" cannot use both "use client" and export function "generateStaticPar...()".
107+ // export const generateDisabledStaticParams = async (): Promise<BioScreenParams[]> => {
108+ // return [{ slug: 'codinsonn' }]
109+ // }
108110
109111/* --- <BioScreen/> ---------------------------------------------------------------------------- */
110112
You can’t perform that action at this time.
0 commit comments