Get api domain in nitro server file
Greeting i created server route that go to api and check the phone if it exist before or not here it's
and here it my env file
every thing is cool on local but on production i got File not found error (Note: api route is same on local and prod)
1 Reply
i am using forge to deploy but the main script that forge use is that
the api route is right on both local and prod but for some reason on production he cant use it i printed it in console and deploy and viewed the production and i found that he read the right url and i also tried ur approch and still have same issue