diff --git a/devServer.js b/devServer.js index 7e06e2e..d4d4460 100644 --- a/devServer.js +++ b/devServer.js @@ -1,4 +1,5 @@ var path = require("path"); +var KintoClient = require("kinto-http"); var express = require("express"); var webpack = require("webpack"); @@ -23,6 +24,9 @@ app.get("/react-jsonschema-form.css", function(req, res) { res.sendFile(path.join(__dirname, "css", "react-jsonschema-form.css")); }); +var url = process.env.SERVER_URL || "http://localhost:8888/v1/"; // I would like to get this from config, but been unable so far. +new KintoClient(url); // This will simply check the URL format over Kinto Standards + app.listen(port, "localhost", function(err) { if (err) { console.log(err);