You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that the application has to be built with the NEXT_PUBLIC_BASE_URL already set, instead of allowing it to be filled later.
Such practice, prevents users from using the already built application (being it inside/outside of docker).
How to reproduce:
1 - Make sure you're working on a clean environment (identical to repo)
git clean -fdxd
2 - Build the application
npm install
npm run build
3 - Create your .env.local file with the your configs (firebase and public url)
1 - Navigate to http://127.0.0.1.nip.io:3000/
2 - Open preferred Developer tools and go to the network tab
3 - Fill in any URL on the webpage and click on the button Light It Up 🔥
4 - A POST request is shown on the network tab aimed at http://127.0.0.1.xip.io:3000/
Actual
1 - Navigate to http://127.0.0.1.nip.io:3000/
2 - Open preferred Developer tools and go to the network tab
3 - Fill in any URL on the webpage and click on the button Light It Up 🔥
4 - A POST request is shown on the network tab aimed at http://localhost:3000/
Temporary workaround
While this issue doesn't get fixed, might be worth it to change documentation to:
Application
Instruct users to build application with the .env.local already created and filled as first step.
Docker
Stop distributing ready-to-use docker image and change docker-compose to force user to build its own docker-image
The text was updated successfully, but these errors were encountered:
This means that the application has to be built with the
NEXT_PUBLIC_BASE_URL
already set, instead of allowing it to be filled later.Such practice, prevents users from using the already built application (being it inside/outside of docker).
How to reproduce:
1 - Make sure you're working on a clean environment (identical to repo)
2 - Build the application
3 - Create your
.env.local
file with the your configs (firebase and public url)4 - Start the application
Expected
1 - Navigate to
http://127.0.0.1.nip.io:3000/
2 - Open preferred
Developer tools
and go to thenetwork tab
3 - Fill in any URL on the webpage and click on the button
Light It Up 🔥
4 - A POST request is shown on the
network tab
aimed athttp://127.0.0.1.xip.io:3000/
Actual
1 - Navigate to
http://127.0.0.1.nip.io:3000/
2 - Open preferred
Developer tools
and go to thenetwork tab
3 - Fill in any URL on the webpage and click on the button
Light It Up 🔥
4 - A POST request is shown on the
network tab
aimed athttp://localhost:3000/
Temporary workaround
While this issue doesn't get fixed, might be worth it to change documentation to:
Application
Instruct users to build application with the
.env.local
already created and filled as first step.Docker
Stop distributing ready-to-use docker image and change docker-compose to force user to build its own docker-image
The text was updated successfully, but these errors were encountered: