Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Inject a checkpoint of correct SERVER_URL format by Kinto's standards #199

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions devServer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var path = require("path");
var KintoClient = require("kinto-http");
var express = require("express");
var webpack = require("webpack");

Expand All @@ -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);
Expand Down