Skip to content

Commit

Permalink
fix(gatsby-node): support optional baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Darth-Knoppix committed Jun 22, 2020
1 parent b9adc9f commit 9a4630c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
{
resolve: `@darth-knoppix/gatsby-plugin-feed`,
options: {
baseUrl: 'https://example.com'
baseUrl: 'https://example.com' // This is optional
// Site query, whatever you need for the setup function will be on `query`
query: `
{
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function byMatch({ match }) {
return true;
}

function Link({ output, title, link, type, baseUrl }) {
function Link({ output, title, link, type, baseUrl = "" }) {
const href = link || withPrefix(output);

return (
Expand Down

0 comments on commit 9a4630c

Please sign in to comment.