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
Currently, the default usernames in the CompareForm component are hardcoded to pbiggar and CoralineAda. We should resolve these from environment variables (e.g., NEXT_PUBLIC_DEFAULT_USER1 and NEXT_PUBLIC_DEFAULT_USER2) to make them easily configurable without changing the code.
Tasks
Open components/compare-form.tsx.
Update the useState initial values for username1 and username2 to read from process.env.NEXT_PUBLIC_DEFAULT_USER1 and process.env.NEXT_PUBLIC_DEFAULT_USER2 (providing an empty texts as fallbacks).
Document the new variables in .env.example.
Note
🚀 CONTRIBUTIONS ARE WELCOME!
If you want to get this issue assigned to you, just comment 'assign me'.
You will be assigned to the issue instantly via our GitHub Actions bot. Happy coding! ✨
Currently, the default usernames in the
CompareFormcomponent are hardcoded topbiggarandCoralineAda. We should resolve these from environment variables (e.g.,NEXT_PUBLIC_DEFAULT_USER1andNEXT_PUBLIC_DEFAULT_USER2) to make them easily configurable without changing the code.Tasks
components/compare-form.tsx.useStateinitial values forusername1andusername2to read fromprocess.env.NEXT_PUBLIC_DEFAULT_USER1andprocess.env.NEXT_PUBLIC_DEFAULT_USER2(providing an empty texts as fallbacks)..env.example.Note
🚀 CONTRIBUTIONS ARE WELCOME!
If you want to get this issue assigned to you, just comment 'assign me'.
You will be assigned to the issue instantly via our GitHub Actions bot. Happy coding! ✨