next.js
6520b7d9 - Move `create-next-app` public/ assets from local folder→ remote URL (#66931)

Commit
1 year ago
Move `create-next-app` public/ assets from local folder→ remote URL (#66931) To reduce the number of files cloned during `create-next-app`, this PR shifts the SVG assets placed in the `public/` folder to instead by consumed from the Next.js site. Since these are SVG files (vector images), the Image component does _not_ optimize them with image optimization. Image optimization only applies to raster images (like `.png` or `.jpg`). This means it's effectively similar to using the `unoptimized` prop on the `Image` component, which means you don't need to add `remotePatterns` to `next.config.js` – which would be midly annoying for the `create-next-app` starter. I also renamed `file-text.svg` to `file.svg` so the URL is shorter. These assets will be live on .org any minute now.
Author
Committer
Parents
Loading