我正在尝试将 ReactJS 应用程序部署到 aws amplify,并且一切都在本地主机和隐身浏览器窗口中最终正常运行,就在我在常规浏览器中访问我的应用程序 url 时,我收到此错误

如果我清除浏览器 cookie 并访问 url,那很好,但每次我部署新的构建文件夹时,它都会返回到此。我尝试了几乎所有可以在互联网上找到的建议,但它仍然发生。
我尝试过的解决方案:
<Router basename='/index.html'>到我的代码中。有关我的环境和观察的详细信息:
<html lang="en">
<head>
<meta charset="utf-8" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins:wght@400;500;600;700;900&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Vaccination Verification Made Easy" …Run Code Online (Sandbox Code Playgroud)