Unverified Commit e3921c79 authored by Delba de Oliveira's avatar Delba de Oliveira Committed by GitHub
parent bd0da32a
......@@ -249,7 +249,7 @@ The `ImageResponse` constructor allows you to generate dynamic images using JSX
To use it, you can import `ImageResponse` from `next/og`:
```jsx filename="app/about/route.js"
```jsx filename="app/about/opengraph-image.js"
import { ImageResponse } from 'next/og'
export async function GET() {
......
......@@ -411,19 +411,11 @@ module.exports = {
}
```
### Rewrites with i18n support
<AppOnly>
When leveraging [`i18n` support](/docs/app/building-your-application/routing/internationalization) with rewrites each `source` and `destination` is automatically prefixed to handle the configured `locales` unless you add `locale: false` to the rewrite. If `locale: false` is used you must prefix the `source` and `destination` with a locale for it to be matched correctly.
</AppOnly>
<PagesOnly>
When leveraging [`i18n` support](/docs/pages/building-your-application/routing/internationalization) with rewrites each `source` and `destination` is automatically prefixed to handle the configured `locales` unless you add `locale: false` to the rewrite. If `locale: false` is used you must prefix the `source` and `destination` with a locale for it to be matched correctly.
### Rewrites with i18n support
</PagesOnly>
When leveraging [`i18n` support](/docs/pages/building-your-application/routing/internationalization) with rewrites each `source` and `destination` is automatically prefixed to handle the configured `locales` unless you add `locale: false` to the rewrite. If `locale: false` is used you must prefix the `source` and `destination` with a locale for it to be matched correctly.
```js filename="next.config.js"
module.exports = {
......@@ -467,6 +459,8 @@ module.exports = {
}
```
</PagesOnly>
## Version History
| Version | Changes |
......
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