chore(nx/desktop): switch to webpack-based build

This commit is contained in:
Elian Doran
2025-04-23 13:10:13 +03:00
parent 492e953517
commit 15fbe41312
13 changed files with 170 additions and 39 deletions

View File

@@ -1 +1,21 @@
console.log('Hello World');
/**
* This is not a production server yet!
* This is only a minimal backend to get started.
*/
import express from 'express';
import * as path from 'path';
const app = express();
app.use('/assets', express.static(path.join(__dirname, 'assets')));
app.get('/api', (req, res) => {
res.send({ message: 'Welcome to desktop!' });
});
const port = process.env.PORT || 3333;
const server = app.listen(port, () => {
console.log(`Listening at http://localhost:${port}/api`);
});
server.on('error', console.error);