@device-portal/server 0.0.4 → 0.0.5
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/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -94,10 +94,10 @@ app.get('/v0/', upgradeWebSocket((context) => {
|
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
96
|
}));
|
|
97
|
-
const storybookRelativePath = '
|
|
98
|
-
const storybookPath = (0, path_1.resolve)(__dirname, storybookRelativePath);
|
|
97
|
+
const storybookRelativePath = '../react/storybook-static';
|
|
98
|
+
const storybookPath = (0, path_1.resolve)(__dirname, '..', storybookRelativePath);
|
|
99
99
|
if ((0, fs_1.existsSync)(storybookPath)) {
|
|
100
|
-
app.use('/*', (0, serve_static_1.serveStatic)({ root:
|
|
100
|
+
app.use('/*', (0, serve_static_1.serveStatic)({ root: '../react/storybook-static' }));
|
|
101
101
|
}
|
|
102
102
|
const portString = process.env.PORT;
|
|
103
103
|
let port = 8080;
|