Skip to content

directly accessible client only paths #25312

Answered by pieh
amlcodes asked this question in Help
Discussion options

You must be logged in to vote

gatsby serve is also express "app": https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/commands/serve.ts so if you do want to use express, but you need it to do more than gatsby serve, you could copy the client only paths "router" from that file to your own application.

Please do keep in mind that we generally don't recommend using either gatsby serve or custom express app to host production gatsby sites, because CDNs mostly take away a lot of hairy problems you might need to solve on your own when running your own server (stuff like redundancy, maybe load balancing, etc), but I also acknowledge that it might not be "that simple" in various cases. Also keep in mind that ga…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LekoArts
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #25312 on October 16, 2020 12:58.