Replies: 2 comments
-
Hey @syed969! 👋 I'm here to help you with any bugs, questions, or becoming a contributor. Let's squash those bugs together! The issue with your application on AWS EC2 not working correctly and the login page looking different could be due to missing or incorrectly set environment variables. The code snippet from
Ensure that these environment variables are correctly set on your AWS EC2 instance. If any of these variables are not defined, the application will throw an error or behave unexpectedly, which could explain why the login page looks different or why the application is not working correctly. Here is the relevant part of the code that checks for these environment variables: const frontendUrl = process.env.NEXT_PUBLIC_E2E_URL;
const email = process.env.NEXT_PUBLIC_E2E_EMAIL;
const password = process.env.NEXT_PUBLIC_E2E_PASSWORD;
if (frontendUrl === undefined) {
throw new Error("NEXT_PUBLIC_E2E_URL is not defined");
}
if (email === undefined) {
throw new Error("NEXT_PUBLIC_E2E_EMAIL is not defined");
}
if (password === undefined) {
throw new Error("NEXT_PUBLIC_E2E_PASSWORD is not defined");
} Make sure to set these environment variables on your EC2 instance, and the application should work as expected [1]. |
Beta Was this translation helpful? Give feedback.
-
actually it was related to .env file |
Beta Was this translation helpful? Give feedback.
-
i used the readme file in the github and deployed the application sucessfully on my local mac machine
and i am able to login to the web using the admin cred
same thing i have done in deploying the application o EC2 amazon linux t2.large
the app is getting deployed on ec2
but the web page doesn't work when i try to # after filling the admin cred and clicking on login and even the login page looks different than the page that i have deployed in my local mac book
i have checked the docker logs in the web container there are no error as such where i can identify the issue
Any Help would greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions