Having troubles while deploying my nextjs app to vercel where Iam calling my API routes thats localhost but in when deploy its in vercel I don't know what domain name will be so it's giving error for not fetehing datas.
Thanks for your help.
I highly appreciate you
Related
I have an app which I had pushed to heroku a few days ago, where it works fine, but when deploying the app to Netlify, the app deploys but the graphQL connection throws a 404 error. Here are some images.
Here is the code I use in App.js
Is there anyone that knows how I can fix this? Much appreciated
Netlify doesn't run a app server like Heroku, it only runs a static file server. From your code, it appears that you're trying to serve a app that you could connect to and provide yourself with GraphQL access. This is not possible on Netlify, at least not directly.
The only server-like solution that Netlify currently provides in Netlify Functions. However, those are limited to 10 sec by default and provide, one-time data connection - not something that you could keep on using for GraphQL.
So if your requirement is to keep the GraphQL server running (for example like what Gatsby does during gatsby develop), Netlify is not the solution for you. If you wish to send the data one-time and add some server-side processing, you can take a look at Netlify Functions.
I was creating a website (www.nycalco.com)
I worked on localhost and kept pushing the code on Github. I deployed the app on firebase to access the outputs (https://nycal-co.web.app/)
Now after deploying the website on Hostgator, I can't access the files!
Please help!
I've followed all the provided MS tutorials but still cannot get my sails app to run on Azure. I get the following log error. Can anyone help as to why these errors are happening?
Here is the official Azure deployment strategy for Sails.
https://github.com/mikermcneil/sails-deploy-azure
I have resolved my question. The error was created by an incorrect Redis URL. If you are using Redis ensure to add the Azure service Azure Cache for Redis and use the provided URL eg. redis://[your host name].redis.cache.windows.net:6380
I am new to web development and have never deployed an app before.
I have bought a domain, ssl, and shared hosting through go daddy and am trying to deploy a simple Sapper app.
I have been able to deploy a basic node.js app by following this thread I have Godaddy Shared Web Hosting I need to host node.js website can host site?
I have uploaded my app folder into the user/public_html folder and can successfully build the app by running:
node sapper/build
The terminal replies with "Starting server on port 3000" which doesn't change anything.
My guess is I need to modify my server.js but I am really out of my depth (it's using polka btw).
If someone could please help me deploy the app correctly and how to integrate the ssl certificates it would be much appreciated.
Thanks :)
I deployed my NodeJS app on heroku, but I have a problem. I can make the get request from "/", created on app.js with app.get("/", ...), but I can't make any request from the outside routers, it is loading for a time, and then an error pop up. The problem is not from the router, on local version, all requests work.
Make sure that in your code the server is hosted on process.env.port, as heroku dynamically assigns ports in order to help keep the service free.