Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-plugin-gatsby-cloud): don't add undefined to preload path if assetPrefix is falsy #35400

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Apr 11, 2022

Description

Documentation

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 11, 2022
@@ -85,7 +85,7 @@ function linkHeaders(files, pathPrefix, assetPrefix) {
files[resourceType].forEach(file => {
linkHeaders.push(
linkTemplate(
`${assetPrefix && assetPrefix + `/`}${pathPrefix}/${file}`,
`${assetPrefix ? assetPrefix + `/` : ``}${pathPrefix}/${file}`,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was producing undefined/foo/bar kind of results when assetPrefix was falsy

@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 11, 2022
@EzraEllette EzraEllette self-requested a review April 11, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants