Join Slack
Powered by
Is there a recommended way to do server side rende...
# prisma-whats-new
h
hellojere
03/18/2017, 10:50 AM
Is there a recommended way to do server side rendering with Graphcool?
s
sorenbs
03/18/2017, 11:25 AM
@hellojere
We use
https://github.com/graphcool/prep
for most of our sites
h
hellojere
03/18/2017, 12:26 PM
Ok, thanks. Is there a way to make that work with dynamic pages somehow? I mean where the route is not fully predefined
s
sorenbs
03/18/2017, 12:32 PM
There is 🙂 Take a look at how we do it for our homepage and documentation
https://github.com/graphcool/homepage/blob/master/prep.js
(hint: we store everything in a Graphcool project)
h
hellojere
03/18/2017, 12:49 PM
Wonderful. Thank you so much, this will get me forward
s
sorenbs
03/18/2017, 2:09 PM
Awesome!
s
sdubois
03/18/2017, 2:33 PM
Although I guess you need to redeploy the project any time there are page changes, right?
s
schickling
03/18/2017, 3:29 PM
Yes,
@sdubois
. Simply use a Mutation Callback for that!
Open in Slack
Previous
Next