Logo-amall

hosting/url/subdomain confusion

Last active 1 months ago

4 replies

4 views

  • TE

    Hey, I'm loving the platform, but I'm really getting hung up on how the hosting works. It just seems really complicated the way the production urls have 5 subdomains and end up having different paths than the local dev urls.

    localhost:1337/v1/functions/my/path -> functions.nhost.run/v1/my/path
    

    That gets kind of messy when now the graphql and functions are basically separate urls, doesn't it?

    Also, I had kind of hoped that I could put my production backend APIs at my own domain (my.domain.com/v1/graphql), and maybe I can just do redirects or something, maybe I'm overthinking/underthinking this. Is that something I can do or does that defy the purpose of the platform? I would love to not have to self host this thing just yet if possible… Curious if anyone has thoughts or feedback on my concerns.

  • EL

    Thanks for your kind words πŸ™‚

    We're working on fixing this here: https://github.com/nhost/cli/pull/497 so that the local URLs matches what's in production.

    Custom backend URLs is one of the most requested feature (https://github.com/nhost/nhost/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc). Give that issue a πŸ‘ and help us prioritize it πŸ™‚

  • TE

    oh thank you for the links! Sometimes I'm just drowning in documentation and can't figure out where to even start looking for answers.

  • TE

    yeah, this feature would go a looooong way in instilling confidence in the platform for me. I'm committing pretty hard to nhost for my business, and little things like this make me question my sanity sometimes.

Last active 1 months ago

4 replies

4 views