Unverified Commit 39d6a2ee authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

docs: fix code block language in images-and-fonts docs (#73492)

## Summary
Update incorrect code block languages at [Images and
Fonts](https://nextjs.org/docs/canary/app/getting-started/images-and-fonts)
docs.

### Improving Documentation

- [x] Run `pnpm prettier-fix` to fix formatting issues before opening
the PR.
- [x] Read the Docs Contribution Guide to ensure your contribution
follows the docs guidelines:
https://nextjs.org/docs/community/contribution-guideCo-authored-by: 's avatarDelba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
parent c291ff6b
...@@ -55,7 +55,7 @@ The `src` property can be a [local](#local-images) or [remote](#remote-images) i ...@@ -55,7 +55,7 @@ The `src` property can be a [local](#local-images) or [remote](#remote-images) i
To use a local image, `import` your `.jpg`, `.png`, or `.webp` image files from your [`public` folder](#handling-static-assets). To use a local image, `import` your `.jpg`, `.png`, or `.webp` image files from your [`public` folder](#handling-static-assets).
```tsx filename="app/page.ts" switcher ```tsx filename="app/page.tsx" switcher
import Image from 'next/image' import Image from 'next/image'
import profilePic from './me.png' import profilePic from './me.png'
...@@ -131,7 +131,7 @@ Since Next.js does not have access to remote files during the build process, you ...@@ -131,7 +131,7 @@ Since Next.js does not have access to remote files during the build process, you
Then, to safely allow images from remote servers, you need to define a list of supported URL patterns in `next.config.js`. Be as specific as possible to prevent malicious usage. For example, the following configuration will only allow images from a specific AWS S3 bucket: Then, to safely allow images from remote servers, you need to define a list of supported URL patterns in `next.config.js`. Be as specific as possible to prevent malicious usage. For example, the following configuration will only allow images from a specific AWS S3 bucket:
```ts filename="next.config.js" switcher ```ts filename="next.config.ts" switcher
import { NextConfig } from 'next' import { NextConfig } from 'next'
const config: NextConfig = { const config: NextConfig = {
......
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