fix(server-build): füge .js-Erweiterungen zu allen relativen Imports hinzu für ESNext-Module-Kompatibilität

This commit is contained in:
2025-10-01 22:17:23 +02:00
parent c6c1455612
commit 74f55486bc
5 changed files with 13 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import { Hono } from "hono";
import { rpcApp } from "./routes/rpc";
import { clientEntry } from "./routes/client-entry";
import { rpcApp } from "./routes/rpc.js";
import { clientEntry } from "./routes/client-entry.js";
const app = new Hono();
@@ -19,7 +19,7 @@ app.get("/health", (c) => {
// Legal config endpoint (temporary fix for RPC issue)
app.get("/api/legal-config", async (c) => {
try {
const { getLegalConfig } = await import("./lib/legal-config");
const { getLegalConfig } = await import("./lib/legal-config.js");
const config = getLegalConfig();
return c.json(config);
} catch (error) {