Skip to content

Commit

Permalink
docs: fix code block language in images-and-fonts docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Dec 6, 2024
1 parent a6da830 commit c0bf9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/01-app/01-getting-started/04-images-and-fonts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

```tsx filename="app/page.ts" switcher
```tsx filename="app/page.tsx" switcher
import Image from 'next/image'
import profilePic from './me.png'

Expand Down Expand Up @@ -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:

```ts filename="next.config.js" switcher
```ts filename="next.config.ts" switcher
import { NextConfig } from 'next'

const config: NextConfig = {
Expand Down

0 comments on commit c0bf9ef

Please sign in to comment.