diff --git a/packages/nuxt3/src/server/server.ts b/packages/nuxt3/src/server/server.ts index a59ece7490..dc0853d4e4 100644 --- a/packages/nuxt3/src/server/server.ts +++ b/packages/nuxt3/src/server/server.ts @@ -347,12 +347,12 @@ export default class Server { return this.app.stack.map(({ handle }) => handle._middleware && handle._middleware.entry).filter(Boolean) } - renderRoute (...args: Parameters) { - return this.renderer.renderRoute.apply(this.renderer, ...args.slice()) + renderRoute () { + return this.renderer.renderRoute.apply(this.renderer, arguments) } - loadResources (...args: Parameters) { - return this.renderer.loadResources.apply(this.renderer, ...args) + loadResources () { + return this.renderer.loadResources.apply(this.renderer, arguments) } renderAndGetWindow (url, opts = {}, {