graphql-framework-experiment
graphql-framework-experiment copied to clipboard
support custom path
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.
Have you tried
import { settings } from "nexus"
settings.change({
server: {
path: "/"
}
})
https://nexusjs.org/api/nexus/settings#change
note, I just saw the note on this here: https://github.com/graphql-nexus/nexus/pull/1261#issue-455004240 and stopped searching :)