next.js
aee9c1ef - docs(cacheLife): fix incorrect highlight and missing `switcher` (#72216)

Commit
1 year ago
docs(cacheLife): fix incorrect highlight and missing `switcher` (#72216) This PR fixes two issues on the [cacheLife](https://nextjs.org/docs/canary/app/api-reference/functions/cacheLife) documentation page: 1. Incorrect highlight for `biweekly` in [Defining reusable cache profiles](https://nextjs.org/docs/canary/app/api-reference/functions/cacheLife#defining-reusable-cache-profiles) section. It should highlight `biweekly` but not `export default async function Page()` ![image](https://github.com/user-attachments/assets/f5b331cf-a5eb-41b0-8cba-08b2a2ff836d) 2. Missing `switcher` for TS and JS codeblock in [Defining cache profiles inline](https://nextjs.org/docs/canary/app/api-reference/functions/cacheLife#defining-cache-profiles-inline) section. Codeblock is displayed twice ![image](https://github.com/user-attachments/assets/e618f806-674f-4c21-8e02-8c90dd2308a5) Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> Co-authored-by: Jiwon Choi <devjiwonchoi@gmail.com>
Author
Parents
Loading