@polylith/server 0.1.12 → 0.1.14

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/PolylithServer.js CHANGED
@@ -31,7 +31,7 @@ export class PolylithServer {
31
31
  var roots = !Array.isArray(this.staticRoot) ? [this.staticRoot] : this.staticRoot;
32
32
 
33
33
  roots.forEach(function(root) {
34
- this.app.use(express.static(path.join(this.root, root)));
34
+ this.app.use(express.static(path.join(this.root, root), {fallthrough: true}));
35
35
  }, this)
36
36
  }
37
37
 
@@ -65,8 +65,8 @@ export class PolylithServer {
65
65
  .use(express.text())
66
66
  .use(express.raw())
67
67
 
68
- await this.setAppRoutes(apps);
69
68
  this.serve();
69
+ await this.setAppRoutes(apps);
70
70
 
71
71
  if (httpsOptions)
72
72
  this.server = https.createServer(httpsOptions, this.app);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/server",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "This is the basic polylith http/https server. It is build on top of Express.js",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "https://github.com/Ondoher/polylith",
9
9
  "directory": "packages/server/server"
10
10
  },
11
- "scripts": {
11
+ "scripts": {
12
12
  "test": "echo \"Error: no test specified\" && exit 1",
13
13
  "start": "node server.js"
14
14
  },
@@ -22,4 +22,4 @@
22
22
  "express": "^4.18.2"
23
23
  },
24
24
  "type": "module"
25
- }
25
+ }