modernx-gui 1.1.4 → 1.1.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/package.json +1 -1
- package/src/lib/server.js +2 -2
package/package.json
CHANGED
package/src/lib/server.js
CHANGED
|
@@ -7,11 +7,11 @@ async function startServer(options = {}) {
|
|
|
7
7
|
const port = options.port || 3000;
|
|
8
8
|
|
|
9
9
|
// Serve static files from GUI dist
|
|
10
|
-
app.use(express.static(path.join(__dirname, '
|
|
10
|
+
app.use(express.static(path.join(__dirname, '../../dist')));
|
|
11
11
|
|
|
12
12
|
// Default route to serve index.html
|
|
13
13
|
app.get('/', (req, res) => {
|
|
14
|
-
res.sendFile(path.join(__dirname, '
|
|
14
|
+
res.sendFile(path.join(__dirname, '../../dist/index.html'));
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
// API endpoint for project info
|