fix: Fixed romm login, now uses token
feat: Moved romm to internal plugin fix: Made focusing and navigation more reliable fix: Loading errors on first time launch
This commit is contained in:
parent
7c10f4e4c2
commit
816d50ae4d
81 changed files with 1659 additions and 1097 deletions
|
|
@ -3,7 +3,6 @@ import { host } from "./utils/host";
|
|||
import { appPath } from "./utils";
|
||||
import Elysia from "elysia";
|
||||
import cors from "@elysiajs/cors";
|
||||
import staticPlugin from "@elysiajs/static";
|
||||
|
||||
export function RunBunServer ()
|
||||
{
|
||||
|
|
@ -23,16 +22,13 @@ export function RunBunServer ()
|
|||
{
|
||||
return Bun.file(appPath('./dist/emulatorjs/index.html'));
|
||||
})
|
||||
.use(staticPlugin({
|
||||
indexHTML: false,
|
||||
assets: appPath("./dist"),
|
||||
prefix: "/",
|
||||
alwaysStatic: true
|
||||
}));
|
||||
.get("/*", ({ params }) => Bun.file(appPath(`./dist/${params["*"]}`)));
|
||||
|
||||
return new Promise<typeof server>((resolve) =>
|
||||
{
|
||||
server.onStart(() => resolve(server))
|
||||
.listen({ port: SERVER_PORT, hostname: host, development: true }, console.log);
|
||||
server.listen({ port: SERVER_PORT, hostname: host, development: true }, async ({ hostname, port }) =>
|
||||
{
|
||||
resolve(server);
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue