Skip to content

Commit

Permalink
Add pathPrefix support to manifest plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
canastro committed Dec 9, 2017
1 parent b21a022 commit 6cdaf16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-plugin-manifest/src/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -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 6cdaf16

Please sign in to comment.