Skip to content

Commit

Permalink
Add pathPrefix support to manifest plugin (#3170)
Browse files Browse the repository at this point in the history
  • Loading branch information
canastro authored and KyleAMathews committed Dec 13, 2017
1 parent 7dade1e commit 69ca247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-plugin-manifest/src/gatsby-ssr.js
@@ -1,11 +1,12 @@
import React from "react"
import { withPrefix } from "gatsby-link"

exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
setHeadComponents([
<link
key={`gatsby-plugin-manifest-link`}
rel="manifest"
href="/manifest.json"
href={withPrefix(`/manifest.json`)}
/>,
<meta
key={`gatsby-plugin-manifest-meta`}
Expand Down

0 comments on commit 69ca247

Please sign in to comment.