Skip to content

Commit 7fe9065

Browse files
JamBalaya56562ijjk
andauthored
docs: typo file extension (#72272)
## Summary Change [language and filename](https://nextjs.org/docs/canary/community/contribution-guide#language-and-filename) for match code block language. ### 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-guide Co-authored-by: JJ Kasper <[email protected]>
1 parent be7dbc9 commit 7fe9065

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

errors/invalid-getserversideprops-value.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In one of the page's `getServerSideProps` the return value had the incorrect sha
1010

1111
Make sure to return the following shape from `getServerSideProps`:
1212

13-
```ts filename="pages/example.js"
13+
```tsx filename="pages/example.tsx"
1414
export async function getServerSideProps(ctx: GetServerSidePropsContext) {
1515
return {
1616
props: { [key: string]: any }

errors/no-document-viewport-meta.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The viewport tag should be handled by `next/head` in `pages/_app.js`.
1111

1212
Set your viewport `meta` tag in `pages/_app.js` instead:
1313

14-
```tsx filename="pages/_app.js"
14+
```jsx filename="pages/_app.js"
1515
import Head from 'next/head'
1616

1717
function MyApp({ Component, pageProps }) {

0 commit comments

Comments
 (0)