Migrate from vue-cli / webpack to vite

This commit is contained in:
Linus Groh
2024-02-27 22:01:37 +00:00
parent 06faa73b70
commit 91d99cd8da
25 changed files with 1582 additions and 10975 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
const corsProxy = require("cors-anywhere");
import { createServer } from "cors-anywhere";
const host = process.env.OT_PROXY_HOST || "0.0.0.0";
const port = process.env.OT_PROXY_PORT || 8888;
@@ -20,6 +20,6 @@ if (username !== null && password !== null) {
};
}
corsProxy.createServer(options).listen(port, host, () => {
createServer(options).listen(port, host, () => {
console.log(`Running CORS Anywhere on http://${host}:${port}`);
});