@boomerang-io/webapp-spa-server 1.3.3-beta.0 → 1.3.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -75,7 +75,10 @@ function createBoomerangServer({
|
|
|
75
75
|
|
|
76
76
|
// Initialize healthchecker and add routes
|
|
77
77
|
const healthchecker = new health.HealthChecker();
|
|
78
|
-
app.use("/health", health.LivenessEndpoint(healthchecker)
|
|
78
|
+
app.use("/health", health.LivenessEndpoint(healthchecker).then(middleware => {
|
|
79
|
+
logger.info("Testing");
|
|
80
|
+
logger.info(middleware);
|
|
81
|
+
}));
|
|
79
82
|
app.use("/ready", health.ReadinessEndpoint(healthchecker));
|
|
80
83
|
|
|
81
84
|
// Create endpoint for the app serve static assets
|
|
@@ -109,6 +112,7 @@ function createBoomerangServer({
|
|
|
109
112
|
appRouter.use("/", express.static(path.join(process.cwd(), BUILD_DIR)));
|
|
110
113
|
}
|
|
111
114
|
|
|
115
|
+
// Make sure that files with .css has a type="text/css" since they were throwing errors related to MIME check
|
|
112
116
|
app.use(express.static(APP_ROOT, {
|
|
113
117
|
setHeaders: function (res, path) {
|
|
114
118
|
if (path.endsWith(".css")) {
|
package/package.json
CHANGED