rsnext/packages
Steven d5fd2d75d1
Fix .images.remotePatterns[0].port warning (#44032)
The json schema was incorrectly warning because `port: ''` is valid and we document and use it in examples. The empty string is different than undefined

- empty string: match only URLs without a port
- undefined: match URLs with any port

I noticed this when running one of our examples:

```
pnpm next dev examples/image-component
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn  - Invalid next.config.js options detected:
  - The value at .images.remotePatterns[0].port must be 1 character or more but it was 0 characters.
See more info here: https://nextjs.org/docs/messages/invalid-next-config
```
2022-12-14 16:39:07 +00:00
..
create-next-app v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
eslint-config-next v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
eslint-plugin-next v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
font v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next Fix .images.remotePatterns[0].port warning (#44032) 2022-12-14 16:39:07 +00:00
next-bundle-analyzer v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-codemod v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-env v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-mdx v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-plugin-storybook v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-polyfill-module v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-polyfill-nomodule v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
next-swc v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
react-dev-overlay v13.0.7-canary.6 2022-12-13 09:21:39 -08:00
react-refresh-utils v13.0.7-canary.6 2022-12-13 09:21:39 -08:00