fastboot-app-server
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "fastboot-app-server", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A production-ready app server for running Ember FastBoot apps", | ||
@@ -5,0 +5,0 @@ "main": "src/fastboot-app-server.js", |
@@ -39,2 +39,4 @@ ## Ember FastBoot App Server | ||
const MY_GLOBAL = 'MY GLOBAL'; | ||
let server = new FastBootAppServer({ | ||
@@ -44,3 +46,4 @@ distPath: 'dist', | ||
host: '0.0.0.0', // Optional - Sets the host the server listens on. | ||
port: 4000 // Optional - Sets the port the server listens on (defaults to the PORT env var or 3000). | ||
port: 4000, // Optional - Sets the port the server listens on (defaults to the PORT env var or 3000). | ||
sandboxGlobals: { GLOBAL_VALUE: MY_GLOBAL } // Optional - Make values available to the Ember app running in the FastBoot server, e.g. "MY_GLOBAL" will be available as "GLOBAL_VALUE" | ||
}); | ||
@@ -47,0 +50,0 @@ |
@@ -26,2 +26,3 @@ "use strict"; | ||
this.afterMiddleware = options.afterMiddleware; | ||
this.sandboxGlobals = options.sandboxGlobals; | ||
@@ -47,3 +48,4 @@ if (!this.ui) { | ||
beforeMiddleware: this.beforeMiddleware, | ||
afterMiddleware: this.afterMiddleware | ||
afterMiddleware: this.afterMiddleware, | ||
sandboxGlobals: this.sandboxGlobals | ||
}); | ||
@@ -50,0 +52,0 @@ |
@@ -20,2 +20,3 @@ "use strict"; | ||
this.afterMiddleware = options.afterMiddleware; | ||
this.sandboxGlobals = options.sandboxGlobals; | ||
@@ -34,2 +35,3 @@ if (!this.httpServer) { | ||
afterMiddleware: this.afterMiddleware, | ||
sandboxGlobals: options.sandboxGlobals, | ||
}); | ||
@@ -75,2 +77,3 @@ } | ||
distPath: this.distPath, | ||
sandboxGlobals: this.sandboxGlobals, | ||
}); | ||
@@ -77,0 +80,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
167231
393
232