surge.sh

Setting hostname of a Surge CNAME record to @ on GoDaddy

醉酒当歌 提交于 2020-04-16 04:32:08
问题 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 @ and a value of na-west1.surge.sh . When I try to do this in my DNS records, I can do the CNAME with www for the name, but when I try to do the @ I get an error that says 'Enter your host name as "@", "sub-domain" '. I have tried all different syntax

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

旧巷老猫 提交于 2019-12-11 05:47:08
问题 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 without breaking the website? 回答1: As suggest in related CRA issue 1761 the proposed solution is to eject entire configuration (including Webpack): npm run eject Running npm run eject copies all the configuration files and the transitive