Skip to content

Commit

Permalink
docs: minor syntax typo for missed const (#66154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayakie committed May 25, 2024
1 parent e502b07 commit 9866f3c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export default async function RootLayout() {

## Route Handlers

`GET` functions in [Route Handlers](/docs/app/api-reference/file-conventions/route) are no longer cached by default. To opt `GET` methods into caching, you can use a [route config option](/docs/app/api-reference/file-conventions/route-segment-config) such as `export dynamic = 'force-static'` in your Route Handler file.
`GET` functions in [Route Handlers](/docs/app/api-reference/file-conventions/route) are no longer cached by default. To opt `GET` methods into caching, you can use a [route config option](/docs/app/api-reference/file-conventions/route-segment-config) such as `export const dynamic = 'force-static'` in your Route Handler file.

```js filename="app/api/route.js
export dynamic = 'force-static'
```js filename="app/api/route.js"
export const dynamic = 'force-static'

export async function GET() {}
```
Expand Down

0 comments on commit 9866f3c

Please sign in to comment.