diff --git a/src/runtime/plugin.dev.ts b/src/runtime/plugin.dev.ts index 5555659..67b3102 100644 --- a/src/runtime/plugin.dev.ts +++ b/src/runtime/plugin.dev.ts @@ -1,4 +1,6 @@ import type { NitroAppPlugin } from "nitropack"; +// @ts-ignore +import { useRuntimeConfig } from "#imports"; export default function (nitroApp) { let _proxy: ReturnType; @@ -33,9 +35,7 @@ async function getBindingsProxy() { const runtimeConfig: { wrangler: { configPath: string; persistDir: string }; - } = - // @ts-ignore - useRuntimeConfig(); + } = useRuntimeConfig(); const proxy = await getBindingsProxy({ configPath: runtimeConfig.wrangler.configPath, diff --git a/tsconfig.json b/tsconfig.json index e9588d9..a239c93 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "module": "ESNext", "moduleResolution": "Node", "esModuleInterop": true, - "strict": true + "strict": true, }, - "include": ["src"] + "include": ["src"], }