-
Notifications
You must be signed in to change notification settings - Fork 19
feat: decoupled sourcing PoC #561
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
Conversation
✅ Deploy Preview for netlify-plugin-gatsby-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
plugin/package.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding it as a dep of the plugin should make it resolvable to builds, but we can do tests with auto-install using feature flags later
plugin/src/helpers/files.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These currently need to be manually set
@abhiaiyer91
abhiaiyer91
Feb 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of SITE_AUTH_JWT, can we make it RESOURCE_AUTH_JWT
@abhiaiyer91
abhiaiyer91
Feb 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and instead of GATSBY_SITE_ID
lets do CONTENT_CLOUD_ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SITE_AUTH_JWT
is for merlin-synchronizer
, so we'd need to change that module to allow either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This injected file is copied from the Gatsby repo with a few small changes to work on Netlify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to replace this with a full resolved path to the dependency if resolving from an auto-installed plugin fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be CONTENT_CLOUD_ID
Uh oh!
There was an error while loading. Please reload this page.
Summary
PoC for experimental decoupled sourcing support. Test this by installing
@netlify/plugin-gatsby@merlin
and then setting the env varsGATSBY_CLOUD_DATALAYER
,CONTENT_CLOUD_ID
andRESOURCE_AUTH_JWT
Test plan
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was
published correctly.