-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
docs: gatsby for apps - auth and client only routes #19551
Conversation
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.
My suggestions
Lots of great stuff here @gillkyle! Think this is going to be an important addition to the docs. I'm considering whether we should change some of the headers or further break out the pages, but let me noodle on it a bit. Overall it's in really good shape. |
Co-Authored-By: LB <[email protected]> Co-Authored-By: Michael <[email protected]>
Co-Authored-By: LB <[email protected]>
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.
Made a tiny change, but think this is good to go!
Co-Authored-By: LB <[email protected]>
} else if (node.internal.type === `CreatorsYaml`) { | ||
// Creator pages | ||
const validTypes = { | ||
individual: `people`, | ||
agency: `agencies`, | ||
company: `companies`, | ||
} | ||
|
||
if (!validTypes[node.type]) { | ||
throw new Error( | ||
`Creators must have a type of “individual”, “agency”, or “company”, but invalid type “${node.type}” was provided for ${node.name}.` | ||
) | ||
} | ||
slug = `/creators/${validTypes[node.type]}/${slugify(node.name, { | ||
lower: true, | ||
})}` | ||
createNodeField({ node, name: `slug`, value: slug }) | ||
} |
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 code block was removed in #19495 Remove creator showcase
we should remove it again?
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.
open new issue #19738
Description
This PR is an incremental improvement for the recommendations made in #18993 for the Building Apps with Gatsby workflow.
The two main changes are in:
Rationale for Adjustments
The Adding Authentication guide mostly just related to the client only routes guide and linked out to the other guides, deferring to explain authentication to the other guides. To update that, I added a diagram about what happens to get authentication info from another service to give an overview on that page which seems like it should serve as more of an overview.
The Client-only Routes guide added more detail on why they are needed and how they are implemented. It also extended the diagrams on the overview page to show the hybrid style approach that an app with authentication requires.
Other small changes
The example for simple auth was updated a little bit, renaming some things and updating links back to the right doc.
Screenshots
Adding Authentication
Client-only Routes & User Authentication
Related Issues
Relates to #18993