Skip to content

Nextjs /pages/api doesn't work #4

Description

@YuriGor

Hi, I am trying to adopt this example in my nextjs project and once I am adding /api to the root of project - it works,
but /pages/api stops working.
Moving all the /pages/api to /api is not an option - it doesn't work properly (nextjs api work differently then vercel api)
Should we instead move rust api to /pages/api?
Could you provide working example?

I expect this potential issues:

  • package.json / vercel-build may be ignored under /pages so we will need to use package.json from the root of project
  • wasm/.so files will not be deployed by default, this in theory is possible through nextjs config / webpack options.

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

      Issue actions