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

Adding option for different endpoints for content #7

Merged
merged 2 commits into from
Mar 24, 2016

Conversation

richardstevens
Copy link
Contributor

What does this PR do? (please provide any background)

We needed to allow for some more data sources instead of just prismic, in this case i have added an option called hxseo (To use our existing hxseo database) but also the ability to pass in a dataSource function for you to create your own if needs be.

What tests does this PR have?

The normal CI linting currently

How can this be tested?

You can download this locally and npm link to the static-site-generator-sites repo to test against existing setup.


Reviewers

Review 1

  • 👍

Review 2 *

  • 👍

Review 3 (optional)

  • 👍

By adding a +1 you are confirming you have...

  • Witnessed the work behaving as expected (this could be on the author's machine or screencast).
  • Checked for coding anti-patterns.
  • Checked for appropriate test coverage.
  • Checked all the tests are passing.

* for HX this review must be completed by an SE, SA or Project Guru

if ( doc.isBroken ) return '';
return '/' + doc.uid;
}
}, opts.dataSource.token );
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, thanks for adding this. Makes everything a bit more secure.

@elliottcrush
Copy link
Contributor

1️⃣

@elliottcrush
Copy link
Contributor

All good after readme is updated with documentation on what config now needs to be used for any project consuming this. Great stuff!

@richardstevens richardstevens merged commit 0549525 into master Mar 24, 2016
@richardstevens richardstevens deleted the adding-hxseo branch March 24, 2016 09:47
@richardstevens richardstevens restored the adding-hxseo branch March 24, 2016 17:15
@richardstevens richardstevens deleted the adding-hxseo branch March 26, 2016 17:48
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