1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 14:25:31 -04:00

enable experimental next/future/image (#973)

This commit is contained in:
2022-06-27 20:45:02 -04:00
committed by GitHub
parent a4602335a1
commit f826f59fcc
14 changed files with 183 additions and 184 deletions

View File

@@ -34,12 +34,10 @@ module.exports = (phase, { defaultConfig }) => {
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
formats: ["image/avif", "image/webp"],
minimumCacheTTL: 43200,
},
experimental: {
images: {
// allow forgoing the mess of `<span>`s around statically imported images
layoutRaw: true,
allowFutureImage: true, // https://github.com/vercel/next.js/pull/37927
},
newNextLinkBehavior: true, // https://github.com/vercel/next.js/pull/36436
},