Create a static.json file.
{ "root": "dist", "clean_urls": true, "routes": { "/**": "index.html" } }Add static.json file to git.
git add static.json git commit -m "add static configuration"Deploy to Heroku.
heroku login heroku create heroku buildpacks:add heroku/nodejs heroku buildpacks:add https://github.com/heroku/heroku-buildpack-static git push heroku master
In step 3. I changed "https://github.com/heroku/heroku-buildpack-static" this buildpacks to "heroku-community/nginx", because it said it's currently not maintaining now. Then when I open it, "method not allowed" is all I have got.