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

add support for ngrok #52

Open
YgorPerez opened this issue Mar 21, 2023 · 3 comments
Open

add support for ngrok #52

YgorPerez opened this issue Mar 21, 2023 · 3 comments

Comments

@YgorPerez
Copy link

This feature would be super useful because I can't use next auth without a TSL connection and the easiest way to do this in the dev environment in Next.js is with ngrok, it creates a reverse tunnel with the app and makes it available on the internet, so I'm not sure how someone would go about implementing this.

If anyone has any idea on how to do this, but doesn't have the time or put in the effort, point me to what I should do, and I would happily take a shot in implementing it.

@iway1
Copy link
Owner

iway1 commented Apr 7, 2023

Does something like:

ngrok http 3000

and then updating the url to:

renderTrpcPanel(myTrpcRouter, { url: "https://myngrokdomain.com/api/trpc" });

work?

If that works, then allowing changing the url in the panel after starting it up or something could be one way to make it simpler since the ngrok domain can change

@YgorPerez
Copy link
Author

YgorPerez commented Apr 8, 2023

renderTrpcPanel(myTrpcRouter, { url: "https://myngrokdomain.com/api/trpc" });

work?

Thank you for the reply, Yeah, that works!

If that works, then allowing changing the url in the panel after starting it up or something could be one way to make it simpler since the ngrok domain can change

any idea on how to implement that?

@khill-fbmc
Copy link

I know this is a little unrelated, but also related. Throwing this out there as an alternative to ngrok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants