Skip to content

Commit

Permalink
Fix warning messages for next export (#41165)
Browse files Browse the repository at this point in the history
## Bug
Noticed the warning messages don't have spaces. Just adding spaces for better messaging. 
<img width="1714" alt="image" src="https://user-images.githubusercontent.com/1635852/193907658-f3c7d90b-1b91-44bf-b93b-915ab4a635f1.png">

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
AdarshKonchady committed Oct 4, 2022
1 parent 328c3a7 commit d2efbc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/server/render.tsx
Expand Up @@ -465,8 +465,8 @@ export async function renderToHTML(
) {
warn(
`Detected getInitialProps on page '${pathname}'` +
`while running "next export". It's recommended to use getStaticProps` +
`which has a more correct behavior for static exporting.` +
` while running "next export". It's recommended to use getStaticProps` +
` which has a more correct behavior for static exporting.` +
`\nRead more: https://nextjs.org/docs/messages/get-initial-props-export`
)
}
Expand Down

0 comments on commit d2efbc8

Please sign in to comment.