mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
25dfdbb131
This PR add supports for a shortcut for adding `icons.icon` or `icons.apple` metadata for page or layout with static files. Closes NEXT-263 Closes NEXT-260 If you specific icon.png or apple-touch-icon.png, they will be automatically picked by and added into metadata as `icon` and `apple-touch-icon` fields, and replace the `icons` field specified in page/layout level metadata exports. File matching rule: ``` icon -> /^icon\d?\.(ico|jpg|png|svg)$/ apple-touch-icon -> /^apple-touch-icon\d?\.(ico|jpg|png|svg)$/ ``` ## Feature - [x] 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` - [x] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) 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`](https://github.com/vercel/next.js/blob/canary/contributing.md) --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
15 KiB
15 KiB