Questions tagged [surge.sh]

46 questions
14
votes
7 answers

How to update your surge.sh project?

I deployed a surge.sh project and it was published successfully, however, I want to make some updates to the project, the updates have been applied locally and can be seen working but it tried to publish it to the same domain again yet it doesn't…
UWGOOSE
  • 833
  • 3
  • 11
  • 20
13
votes
3 answers

Surge-deployed React app - getting 404 Page Not Found

I have an app that is running on (http://simple-pen.surge.sh). This is built with React/Redux for Front-end and Rails for back-end. When I get on the site, I can either sign-up or sign-in and issue a JWT token for the user. Once logged in, I have a…
jamesvphan
  • 1,825
  • 6
  • 23
  • 30
8
votes
3 answers

How can I rename index.html in a create-react-app project?

I'm using Surge to host my create-react-app website and in order to use client-side routing with it you need your entry point to be 200.html but when using create-react-app it's by default set to index.html. What's the best way to rename that file…
JakAttk123
  • 1,646
  • 3
  • 11
  • 19
7
votes
1 answer

Is there a way to have `react-scripts` include extra files in the root of the build?

My Situation: I'm hosting an app created with create-react-app on Surge. In order to have Surge let react-router handle the routes, I have to add a 200.html to the root, and in order to handle 404s, I have to add a 404.html to the root. The problem…
Jo Sprague
  • 16,523
  • 10
  • 42
  • 62
6
votes
2 answers

I do not have have access to navigator.mediaDevices when the site is deployed. How do I fix this?

I am currently trying to use the WebRTC api and have everything working locally. When I deploy to surge.sh I lose access to the navigator.mediaDevices object. How can I resolve this? The following line of code is where I am having trouble…
M.Nar
  • 512
  • 1
  • 9
  • 24
6
votes
1 answer

surge.sh | Create subdomain of custom domain using surge.sh plus

I'm a surge.sh plus customer, with a custom domain, let's say http://bobswidgets.com However, Bob has asked me to set up a subdomain for his new bespoke service. He wants custom.bobswidgets.com But I can't figure out how to do this... and whether…
ToyChicken
  • 185
  • 3
  • 12
2
votes
1 answer

How to set a surge.sh email

I'm doing personal development and trying to use surge.sh to deploy the project. This one is a training exercise so I want to use my personal email address instead of my work email. My work mail is globally set in ~/.gitconfig. I also have surge…
Mikko Metso
  • 23
  • 2
  • 8
2
votes
3 answers

Getting blank page after deploying React app to surge.sh

I made a simple React app in Visual Studio Code and want to host it on a website which I am using surge.sh. When I deployed the app and head to the site, it just shows a blank page although the deployment was successful when I deploy it in my…
Daredevil
  • 1,672
  • 3
  • 18
  • 47
2
votes
1 answer

Deployed a site, and it's not allowing me to visit it due to HSTS

I deployed a site but I cannot visit it due to HSTS. I've tried contacting Namecheap, who I purchased the domain from, but they said the problem is with the hosting I am using. I am using surge.sh and have followed their custom domain…
Some Guy
  • 351
  • 1
  • 4
  • 20
2
votes
1 answer

surge.sh does not allow modifying robots.txt

The default robots.txt file disable search engine indexing? And I cannot replace it with my own. What did I miss? That's the default and fixed one: User-agent: * Disallow: /
user1050755
  • 11,218
  • 4
  • 45
  • 56
2
votes
1 answer

Setting hostname of a Surge CNAME record to @ on GoDaddy

I'm trying to deploy my portfolio to my domain www.dillonbartkus.com with Surge. The instructions are as follows: I'm using a GoDaddy domain that I bought through Google Suite. In the picture it shows a CNAME record with a hostname of www and @…
2
votes
1 answer

Why do we get Error - Deployment did not succeed. for a react app on surge?

can anyone help me to upload a react app on surge. I am getting a Error - Deployment did not succeed. I even tried uploading a fresh react app and I get the same error. I am using surge then I am adding the build path where I have changed index.js…
anup
  • 585
  • 12
  • 34
1
vote
1 answer

Archiving an old PHP website: will any webhost let me totally disable query string support?

I want to archive an old website which was built with PHP. Its URLs are full of .phps and query strings. I don't want anything to actually change from the perspective of the visitor -- the URLs should remain the same. The only actual difference is…
tremby
  • 9,541
  • 4
  • 55
  • 74
1
vote
0 answers

Surge is not recognized as an internal or external command

I have a problem with running surge in cmd, it is : 'surge' is not recognized as an internal or external command, operable program or batch file. I installed surge, but I can't run it.
1
vote
3 answers

Surge Command Not Found

I have read through a lot of posts regarding command not found error messages in the terminal but I can't find any specific to surge. I am running into an error when using the surge command in my terminal. I ran npm install --global surge in my…
user13728451
1
2 3 4