fix(server-build): füge .js-Erweiterungen zu allen relativen Imports hinzu für ESNext-Module-Kompatibilität
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user