Changing the build system to Vite (#62)
* 🔧 Updated date for PullList on Dashboard * ⚡️ Added Vite config and removed useless files * 👷🏽 Updated build command * ❌ Removed useless deps * 🔧 Cleaned up package.json and bumped airdcpp-apisocket * 🔧 Updated some packages and deps * ⬆️ Bumped some deps * 🔧 Fixed typo in package.json * 🔧 Fix for broken paths https://github.com/rishighan/threetwo/issues/63 * 🔧 Fixed broken path and npm script Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com> --------- Signed-off-by: Rishi Ghan <rishi.ghan@gmail.com>
This commit was merged in pull request #62.
This commit is contained in:
@@ -30,12 +30,12 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
||||
// REGISTER ROUTES
|
||||
// all of the routes will be prefixed with /api
|
||||
const routes: Router[] = Object.values(router);
|
||||
app.use("/api", routes);
|
||||
// app.use("/api", routes);
|
||||
|
||||
// Send index.html on root request
|
||||
app.use(express.static("dist"));
|
||||
app.use(express.static("public"));
|
||||
// app.use(express.static("dist"));
|
||||
// app.use(express.static("public"));
|
||||
|
||||
app.listen(port);
|
||||
// app.listen(port);
|
||||
|
||||
console.log(`Server is listening on ${port}`);
|
||||
// console.log(`Server is listening on ${port}`);
|
||||
|
||||
Reference in New Issue
Block a user