Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support custom path #1331

Open
chrisdrackett opened this issue Aug 6, 2020 · 2 comments
Open

support custom path #1331

chrisdrackett opened this issue Aug 6, 2020 · 2 comments
Labels
type/feat Add a new capability or enhance an existing one

Comments

@chrisdrackett
Copy link
Contributor

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 chrisdrackett added the type/feat Add a new capability or enhance an existing one label Aug 6, 2020
@mipyykko
Copy link

mipyykko commented Aug 7, 2020

Have you tried

import { settings } from "nexus"

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

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

@chrisdrackett
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feat Add a new capability or enhance an existing one
Projects
None yet
Development

No branches or pull requests

2 participants