Inject a checkpoint of correct SERVER_URL format by Kinto's standards
Use the KintoClient library to do the checking.
It is pending to make the code to obtain the URL from the app config instead of a ADHOC logic in the server startup.
I tried to get the config with:
var config = require("./formbuilder/config.js").default;
But get a Syntax Error.
I upgraded to kinto-http but I am having this error when running the server: TypeError: KintoClient is not a constructor Any idea about it?
Thanks for taking the time to work on this and propose some code, this is appreciated. However, since this is almost one year old, I think we should close the issue.
Don't hesitate to submit again / reopen if you think we shouldn't have closed this.
What about merging it instead?
From your last comment, it seems to error-out. I'll let you decide what's best :) (reopening)