I can use RunKit as the back end for a serverless web application, but do I have any options for a data source?
Can I have user signups using RunKit + GH pages for example.
I can use RunKit as the back end for a serverless web application, but do I have any options for a data source?
Can I have user signups using RunKit + GH pages for example.
I guess Firebase or AWS, but I wonder if I can do this in a way that isn’t public in the notebook bc I want my api secrets secret
Hi there! You’re correct, you should not put your secrets/keys in your notebook. All notebooks are public! We allow you to set environment variables here which you can access in your code with process.env
in your code. I should also add that we suggest you not log your environment variables, for obvious reasons.
Also, I should point out there is currently a bug, newly created environment variables are only picked up by new notebooks. So you’ll want to move your existing code to a new notebook. Sorry about that!
Wow thanks! You’re awesome! So yes, I can go serverless without having to go static/dataless
“Also, I should point out there is currently a bug, newly created environment variables are only picked up by new notebooks.”
I don’t think this is true any more. I ran a test rendering a new env in an old notebook and has access to the new env and to updates to it.