Unverified Commit 9866f3ce authored by Sayakie's avatar Sayakie Committed by GitHub

docs: minor syntax typo for missed `const` (#66154)

parent e502b07b
...@@ -63,10 +63,10 @@ export default async function RootLayout() { ...@@ -63,10 +63,10 @@ export default async function RootLayout() {
## Route Handlers ## 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 ```js filename="app/api/route.js"
export dynamic = 'force-static' export const dynamic = 'force-static'
export async function GET() {} export async function GET() {}
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment