Skip to content

Commit 90f90d7

Browse files
mporracindieclaude
andcommitted
fix(enterprise): Cast nitro plugin to PluginOption to fix Vite type conflict
Co-Authored-By: Claude Opus 4.1 <noreply@anthropic.com>
1 parent 564fe08 commit 90f90d7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/console/app/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
cloudflare: {
1212
nodeCompat: true,
1313
},
14-
}),
14+
}) as PluginOption,
1515
],
1616
server: {
1717
allowedHosts: true,

packages/enterprise/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig({
2424
nitro({
2525
...nitroConfig,
2626
baseURL: process.env.OPENCODE_BASE_URL,
27-
}),
27+
}) as PluginOption,
2828
],
2929
server: {
3030
host: "0.0.0.0",

packages/opencode/src/server/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export namespace Server {
7575
const app = new Hono()
7676
export const App: () => Hono = lazy(
7777
() =>
78+
// @ts-expect-error TS2589: Route chain is too deep for TypeScript, but works at runtime
7879
app
7980
.onError((err, c) => {
8081
log.error("failed", {

0 commit comments

Comments
 (0)