Skip to content

Commit

Permalink
gatsby-plugin-netlify generates wrong js Link
Browse files Browse the repository at this point in the history
The _headers file generated is like:
```
/404.html
  Link: </webpack-runtime-538a792ce8cbb482dfed.js>; rel=preload; as=script
  Link: </component---src-pages-404-js-c6e3c0efeaf493f3355e.js>; rel=preload; as=script
```
When `public` folder was rearranged and js files start be puted on `/public/js` broke this
  • Loading branch information
porfirioribeiro committed Jul 18, 2018
1 parent f26f438 commit 66de053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
}

Expand Down

0 comments on commit 66de053

Please sign in to comment.