Skip to content

enhancement: Resolve default usernames from environment variables #134

@O2sa

Description

@O2sa

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! ✨

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions