npm install -g roast
roast deploy
Single-page app frameworks using pushstate URLs (Angular, React, Vue, etc.) need to return index.html instead of 404
_redirects
file (read more)/* /index.html 200
CNAME
in your DNS provider for your your-sites-auto-generated-name.roast.io
A
record and point it at: 13.248.150.194
or 76.223.25.187
or bothIf you were previously hosting your single page app on the same server you were serving AJAX from, your AJAX probably "just worked", but moving your front-end to a static web host means your AJAX and front-end will be served from different domains. You have 2 options:
_redirects
file (read more) to proxy (200 rewrite) XHR requests from a local path, say, /api/v1 to your origin server on a different hostroast.io
Modern Web Hosting