mirror of
https://github.com/langgenius/dify.git
synced 2026-09-03 15:27:49 +08:00
Import the committed KnowledgeFS snapshot dc4072ee302317145612087ce7440851dc329fd0 under knowledge-fs/ without its Git history, local IDE settings, or build artifacts.
17 lines
300 B
TypeScript
17 lines
300 B
TypeScript
import { serve } from "@hono/node-server";
|
|
|
|
import app from "./index";
|
|
import { resolveApiPort } from "./server-options";
|
|
|
|
const port = resolveApiPort();
|
|
|
|
serve(
|
|
{
|
|
fetch: app.fetch,
|
|
port,
|
|
},
|
|
(info) => {
|
|
console.log(`Knowledge API listening on http://0.0.0.0:${info.port}`);
|
|
},
|
|
);
|