diff --git a/packages/gatsby-plugin-netlify/src/build-headers-program.js b/packages/gatsby-plugin-netlify/src/build-headers-program.js index 3734a0fba07e1..e78a37449812a 100644 --- a/packages/gatsby-plugin-netlify/src/build-headers-program.js +++ b/packages/gatsby-plugin-netlify/src/build-headers-program.js @@ -42,7 +42,7 @@ function createScriptHeaderGenerator(manifest, pathPrefix) { } // Always add starting slash, as link entries start with slash as relative to deploy root - return linkTemplate(`${pathPrefix}/${chunk}`) + return linkTemplate(`${pathPrefix}/js/${chunk}`) } }