@@ -15,15 +15,15 @@ It is expected to be used in conjunction with [`use cache`](/docs/app/api-refere
...
@@ -15,15 +15,15 @@ It is expected to be used in conjunction with [`use cache`](/docs/app/api-refere
To enable the `dynamicIO` flag, set it to `true` in the `experimental` section of your `next.config.ts` file:
To enable the `dynamicIO` flag, set it to `true` in the `experimental` section of your `next.config.ts` file:
```ts filename="next.config.ts"
```ts filename="next.config.ts"
import type { NextConfig } from 'next';
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
const nextConfig: NextConfig = {
experimental: {
experimental: {
dynamicIO: true,
dynamicIO: true,
}
},
};
}
export default nextConfig;
export default nextConfig
```
```
When `dynamicIO` is enabled, you can use the following cache functions and configurations:
When `dynamicIO` is enabled, you can use the following cache functions and configurations:
...
@@ -34,4 +34,4 @@ When `dynamicIO` is enabled, you can use the following cache functions and confi
...
@@ -34,4 +34,4 @@ When `dynamicIO` is enabled, you can use the following cache functions and confi
## Notes
## Notes
- While `dynamicIO` can optimize performance by ensuring fresh data fetching during runtime, it may also introduce additional latency compared to serving pre-rendered content.
- While `dynamicIO` can optimize performance by ensuring fresh data fetching during runtime, it may also introduce additional latency compared to serving pre-rendered content.