Capítulo 246 de 456
Config option aimed at adapter authors: controls whether Next.js omits the ?dpl=<deployment-id> query parameter on static asset URLs when skew protection is enabled and the deployment provider supports content-addressed, immutable static assets.
supportsImmutableAssets: boolean; when the adapter has enabled support for immutable static assets, set to false to opt out of that behavior. Has no effect if the adapter has not enabled the feature.?dpl=<unique-deployment-id> to static asset requests, forcing re-download after every deploy even if the asset content is unchanged./_next/static/immutable/..., content-addressed by filename, cacheable indefinitely by the browser, and skippable during upload on subsequent deploys./** @type {import('next').NextConfig} */
const nextConfig = {
supportsImmutableAssets: false,
}
module.exports = nextConfig
?dpl quando o provedor não suporta assets imutáveis.| Version | Changes |
|---|---|
v16.3.0 | Added support for immutable static assets. |
false desativa o skip do ?dpl./_next/static/immutable/, diferente do path padrão /_next/static/.