Comparing version 0.18.0 to 0.19.0
@@ -48,4 +48,11 @@ var helpers = require("./util/helpers") | ||
} else { | ||
getDomain(req.suggestedDomain) | ||
if (req.domain == "_"){ | ||
req.domain = [moniker.choose(), req.config.platform].join(".") | ||
console.log(label, req.domain) | ||
next() | ||
} else { | ||
getDomain(req.suggestedDomain) | ||
} | ||
} | ||
} |
@@ -56,3 +56,3 @@ | ||
? config.endpoint | ||
: config.platform ? "http://surge." + config.platform : 'https://surge.surge.sh' | ||
: config.platform ? "https://surge." + config.platform : 'https://surge.surge.sh' | ||
@@ -59,0 +59,0 @@ config.platform = config.platform || "surge.sh" |
{ | ||
"name": "surge", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "CDN for front-end developers", | ||
@@ -5,0 +5,0 @@ "author": "Brock Whitten <brock@chloi.io>", |
@@ -48,3 +48,3 @@ # surge(.sh) | ||
When in doubt, run surge from within you project directory. | ||
When in doubt, run surge from within your project directory. | ||
@@ -51,0 +51,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81313
2254
24447