Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Created May 31, 2021 14:55
Show Gist options
  • Save MichaelDimmitt/5e38901627ebe8d15cde0a7ea3cc7a55 to your computer and use it in GitHub Desktop.
Save MichaelDimmitt/5e38901627ebe8d15cde0a7ea3cc7a55 to your computer and use it in GitHub Desktop.
Deploy surge with cors enabled and https

Deploy surge with cors enabled and https

npm install -g surge
yarn build;
cp build/index.html build/200.html;
echo '*' > build/CORS;
surge build appname.surge.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment