I created the node js application in my local along with nginx server it was working fine but whenever i push the code to code commit and deploy the amplify frontend i get the empty page only.

0

I developed a Node.js application on my local machine with an Nginx server, and it worked flawlessly. However, after pushing the code to CodeCommit and deploying the Amplify frontend, I'm faced with an issue where only an empty page is displayed. In the empty sheet I got the title only

Chrome: Amplify page screenshot: I got the title font only after I getting only the empty page

Firefox: This is a firefox output

KARTHIK
질문됨 6달 전239회 조회
1개 답변
0
수락된 답변

I've run into a similar issue before with SPAs. Updating the "Rewrites and redirects" section resolved it in my case.

</^[^.]+$|\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>

You may have to include additional types in the regular expression. Please let me know if this does not resolve the issue or if you have any question.

Rewrites and redirects

AWS
답변함 6달 전
profile picture
전문가
검토됨 한 달 전
  • Hi Karthik, Did this resolve the issue? Do you have any other questions? If not, would you mind marking my answer as accepted?

  • The problem has been resolved. The reason for the issue was that I didn't specify the build settings for the artifacts directory. I only mentioned the build directory, which resulted in the automatic appearance of the page.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠