Running with Serverless Framework
Has anyone successfully setup react-universal-component/server with serverless framework to run with api gateway and lambda?
I’m about to deal with this nightmare lol. So what I think. You need to supply the assets Json file to the micro service.
I’m in talks with webpack right now about how to add some other things to. So flush chunks wants a webpack dependency graph, if you give it that then it should work. If this is a company project, feel free to invite me into the private repo, I can sign anything. ScriptedAlchemy is a business as well for contracting stuff at larger scales.
So I can sign NDA or whatever if you want me to look at how you pass thing is / if you can. Dont know your protocols but I imagine it’s a “no, can’t do that”. In that case. Can you paste me a demo or a demo repo of some kind?
If you solve it, it would be great to share what you needed to do and I’ll gladly credit you in the readme for the contribution.
Otherwise, I’ll probbably attack this next quarter.
RUC is React.Suspense (obviously Facebook cleaned it up for internal use) check the dependents on the repo and you’ll find facebooks React right there. So if Suspense solves the problem, so be it. The api is almost the same too 🤣😂
I’ve used the AWS Lambda with the github.com/apex/up quite successfully, it’s quite trivial to get working.
@kuka we would really appreciate a copy paste example of this for the readme along with some instructions.
Lambdas are the future for many and it would have me a Hugh headache figuring it out
You can also message me privately and I’ll make a fake one from the example you gave
Let me know your goals first @ScriptedAlchemy. By running on apex/up, I mean the actual app with the react-universal-component within the build not the Lambda serving components directly.