d5fd2d75d1
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 ``` |
||
---|---|---|
.. | ||
create-next-app | ||
eslint-config-next | ||
eslint-plugin-next | ||
font | ||
next | ||
next-bundle-analyzer | ||
next-codemod | ||
next-env | ||
next-mdx | ||
next-plugin-storybook | ||
next-polyfill-module | ||
next-polyfill-nomodule | ||
next-swc | ||
react-dev-overlay | ||
react-refresh-utils |