Deploy Nodejs on Heroku fails serving static files located in subfolders

前端 未结 6 1738
一整个雨季
一整个雨季 2020-11-30 12:30

I\'m deploying a NodeJs application using Heroku. Everything works fine except a little issue serving static files.

I have the following configuration



        
6条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 13:04

    In my case, I had a step in my build that was actually wiping out the /public folder, and then adding back in a bundle.js and bundle.css.

    So on my local I didn't see it, but when it was deployed to Heroku the assets were missing.

提交回复
热议问题