Skip to content

nuxt.js 应用的serverMiddleware 引入失败 #245

Open
@linjiejim

Description

@linjiejim

nuxt.js ssr 应用中,使用serverMidddleware 插件用于封装api routes。本地运行没有问题,部署上腾讯云后出现以下错误信息。

Screen Shot 2022-03-21 at 8 09 27 PM

nuxt.config.js
Screen Shot 2022-03-21 at 8 09 57 PM

api/index.js
Screen Shot 2022-03-21 at 8 12 34 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @linjiejim

        Issue actions

          nuxt.js 应用的serverMiddleware 引入失败 · Issue #245 · Tencent/cloudbase-framework