Back to Opennextjs Aws

Known issues

packages/open-next/src/adapters/plugins/README.md

3.10.4505 B
Original Source

Known issues

Do not include types in #override and #imports, as esbuild will remove preceding comments (ie it removes //#override id)when it builds.

Instead, put the import type outside like:

ts
import type { PluginHandler } from "../next-types.js";
import type { IncomingMessage } from "../request.js";
import type { ServerResponse } from "../response.js";

//#override imports
import { requestHandler } from "./util.js";
//#endOverride

The types are removed in the final output anyways.