Skip to content

graphQL endpoint unreachable when using files: '/*' #36

@ldt1996

Description

@ldt1996

Getting this error:

lavinia@Lavinias-MacBook-Pro harper-ecommerce-template % curl -sk -X POST "https://us-ord-1.v5-testing.akamai.stage.harperfabric.com:9926/graphql" \
  -H "Content-Type: application/json" \
  -u "lavinia@harperdb.io:Stephenhawking96.," \
  -d '{"query":"{ Product { id name category price } }"}'
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/cfddc0e2b913ca42.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_ne .....

The /graphql endpoint returns a nextjs 404 page instead of a graphQL response.

Here the server.http handler passes every request to next,js' requestHandler without falling through to harper for routes next.js doesn't own.

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