@boomerang-io/webapp-spa-server 1.3.1 → 1.3.3-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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -109,6 +109,14 @@ function createBoomerangServer({
109
109
  appRouter.use("/", express.static(path.join(process.cwd(), BUILD_DIR)));
110
110
  }
111
111
 
112
+ app.use(express.static(APP_ROOT, {
113
+ setHeaders: function (res, path) {
114
+ if (path.endsWith(".css")) {
115
+ res.set("Content-Type", "text/css");
116
+ }
117
+ }
118
+ }));
119
+
112
120
  app.use(APP_ROOT, appRouter);
113
121
 
114
122
  // Start server on the specified port and binding host
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/webapp-spa-server",
3
3
  "description": "Webapp Server for React-based SPA w/ client-side routing",
4
- "version": "1.3.1",
4
+ "version": "1.3.3-beta.0",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"
@@ -27,11 +27,11 @@
27
27
  "dependencies": {
28
28
  "@boomerang-io/logger-middleware": "1.0.0",
29
29
  "@cloudnative/health-connect": "^2.1.0",
30
- "body-parser": "^1.20.1",
30
+ "body-parser": "^1.20.3",
31
31
  "compression": "^1.7.4",
32
32
  "cors": "^2.8.5",
33
33
  "dotenv": "^16.0.3",
34
- "express": "^4.19.2",
34
+ "express": "^4.21.0",
35
35
  "helmet": "^6.0.0",
36
36
  "newrelic": "^9.15.0",
37
37
  "serialize-javascript": "^6.0.0",