Open radubrehar opened 4 years ago
Not sure if I understood you correctly due to my limited nonexistent experience with serverless & nextjs :)
But if you mean something like this https://zeit.co/guides/custom-next-js-server-to-routes, then yeah, by all means, this indirection would give us also flexibility.
Ok, so we'll go with handling all routes via nextjs, which also makes it easy to deploy everything via zeit. Will configure the auto deployment with zeit this week.
I was thinking that instead of using serverless directly, we could leverage nextjs, since besides static routes, it also has dynamic routes - read about it at https://nextjs.org/docs/routing/dynamic-routes
Also, this would make deployment via https://zeit.co/home much easier, as we just need to connect the github repo to their platform and this will give us continous deployments
What do you think?