question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Self hosted API route

See original GitHub issue

First off, huge work so far. This is great.

It could be useful to have an example in the documentation on how to self-host the Next API route. For instance, if it could be possible to import it into an API route within my Next build, and update a prop or environment variable so it uses my endpoint instead of the nfte.app endpoint?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sammdeccommented, Feb 15, 2021

I see this as possibly having two parts to it, one would be to package up the core part of the api logic to allow for importing it from a package and using it as a handler. The other part would be to update the react component to support taking in another endpoint url. Does that sound like something that would work for you?

0reactions
sammdeccommented, Feb 18, 2021

Oh thats amazing to hear will be rolling out the updates to nfte.app any minute now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Self-Host ASP.NET Web API 1 (C#) - Microsoft Learn
Tutorial with code shows how to host a web API inside a console application using ASP.Net 4.x and Visual Studio 2012.
Read more >
Routing issue in self hosted webapi - Stack Overflow
{ "Message": "No HTTP resource was found that matches the request URI 'http://localhost:9998/api/shri/flows/config'.", "MessageDetail": "No ...
Read more >
How to Self-Host a Web API with .NET Framework
Step 2 – Fire Up Your Self-Hosted Server​​ You just need to provide a little bit of configuration, then create a class of...
Read more >
Web API Hosting - TutorialsTeacher
Learn how to host the Web API in IIS and Self-Host. ... Now, in the Main() method, configure a default route using config...
Read more >
Self Hosting Web Api - YouTube
Episode #204This episode we are we are going to take a look at the Asp.Net Web Api framework. We are going to learn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found