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
demandé il y a 6 mois240 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 6 mois
profile picture
EXPERT
vérifié il y a un mois
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions