graphql-framework-experiment icon indicating copy to clipboard operation
graphql-framework-experiment copied to clipboard

support custom path

Open chrisdrackett opened this issue 5 years ago • 2 comments

We have our server situated at api.appname.com at the moment while our app lives at appname.com. I'd prefer to leave our server at / as it feels cleaner to me than having to do api.appname.com/graphql as the only thing at that subdomain is our server.

chrisdrackett avatar Aug 06 '20 00:08 chrisdrackett

Have you tried

import { settings } from "nexus"

settings.change({
  server: {
    path: "/"
  }
})

https://nexusjs.org/api/nexus/settings#change

mipyykko avatar Aug 07 '20 10:08 mipyykko

note, I just saw the note on this here: https://github.com/graphql-nexus/nexus/pull/1261#issue-455004240 and stopped searching :)

chrisdrackett avatar Aug 07 '20 17:08 chrisdrackett