为什么Heroku向我发回数据,但我的前端没有呈现任何内容?
我将后端部署到Heroku,并成功部署。我已使用Axios将前端连接到后端,并已将baseURL从localhost更改为Heroku,但一旦打开应用程序,除了原始json数据外,什么也不会显示。前端文件夹中必须有manifest.json,并且必须有指向index.js的start“start_url”,如下所示为什么Heroku向我发回数据,但我的前端没有呈现任何内容?,heroku,axios,mern,Heroku,Axios,Mern,我将后端部署到Heroku,并成功部署。我已使用Axios将前端连接到后端,并已将baseURL从localhost更改为Heroku,但一旦打开应用程序,除了原始json数据外,什么也不会显示。前端文件夹中必须有manifest.json,并且必须有指向index.js的start“start_url”,如下所示 { "short_name": "React App", "name": "Create React A
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "images/favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "images/logo.png",
"type": "image/png",
"sizes": "192x192"
}
],
"start_url": "./index.js",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}