Fix collaboration service loading bug when pressing back and forwards on the navigation bar of your browser causing inconsistencies in viewing state:
As our deployments become more complex and laggier in development environments, using npm run dev for our markers is not ideal as it is perceived as a laggy application. As such, we should move our builds into a fully deployed environment:
[x] I have checked that the changes included in the PR are intended to merge to master or any destination branch.
[x] I have verified that the new changes do not break any existing functionalities, unless the new changes are intended and have approved by the team.
[x] I will take care of the merging and delete the side-branch after the PR is merged.
Additional Notes/References
- I was unable to deploy NextJS in a docker image, and the resultant image size is > 2GB anyways so I think its easier + quicker for markers to npm run build and node ./.next/standalone/server.js instead.
Keeps running into internal server error in docker image, but runs fine with:
~~1. npm run build && npm run start ~~
2. npm run build && node ./.next/standalone/server.js:
Update: @c0j0s made a patch to auth middleware, and now frontend is dockerized and running well for local deployment
Pull Request
Description
Fix collaboration service loading bug when pressing back and forwards on the navigation bar of your browser causing inconsistencies in viewing state:
As our deployments become more complex and laggier in development environments, using
npm run dev
for our markers is not ideal as it is perceived as a laggy application. As such, we should move our builds into a fully deployed environment:Read the setup process here: README
Example .env containing ALL environment variables required to run our applications: (to submit as AssignmentX-environmentVariables.txt)
Related Issue(s)
Checklist
master
or any destination branch.Additional Notes/References
- I was unable to deploy NextJS in a docker image, and the resultant image size is > 2GB anyways so I think its easier + quicker for markers tonpm run build
andnode ./.next/standalone/server.js
instead.Keeps running into internal server error in docker image, but runs fine with:~~1.npm run build && npm run start
~~2.npm run build && node ./.next/standalone/server.js
:Update: @c0j0s made a patch to auth middleware, and now frontend is dockerized and running well for local deployment