Switch from Oak to Hono
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Application } from "../server/deps.ts";
|
||||
import { HttpServer } from "../server/http_server.ts";
|
||||
import clientAssetBundle from "../dist/client_asset_bundle.json" assert {
|
||||
type: "json",
|
||||
@@ -46,8 +45,6 @@ export async function serveCommand(
|
||||
console.log("Running in sync-only mode (no backend processing)");
|
||||
}
|
||||
|
||||
const app = new Application();
|
||||
|
||||
if (!folder) {
|
||||
// Didn't get a folder as an argument, check if we got it as an environment variable
|
||||
folder = Deno.env.get("SB_FOLDER");
|
||||
@@ -90,7 +87,6 @@ export async function serveCommand(
|
||||
});
|
||||
|
||||
const httpServer = new HttpServer({
|
||||
app,
|
||||
hostname,
|
||||
port,
|
||||
clientAssetBundle: new AssetBundle(clientAssetBundle as AssetJson),
|
||||
|
||||
Reference in New Issue
Block a user