Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Env file has to be populated or function performance won't render #59

Open
1 task
dkinsell opened this issue Sep 13, 2024 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@dkinsell
Copy link
Collaborator

Description

The user has to enter in their .env variables on the config page and connect the DB before navigating to /dash. If they don't, the function performance page will not render. Currently the default url is the config page and it redirects the user to the function performance page after submitting the variables and connecting the DB, but the user could theoretically bypass that if they went straight to /dash.

Reproduction

  • If you already have your .env variables submitted delete the .env file
  • If you are spinning up the app for the first time do not submit any of the requested variables on the config page
  • Navigate to localhost:3000/dash and the page will not render

System information

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M2
Memory: 130.52 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
Browsers:
Chrome: 128.0.6613.138
Safari: 17.5

Additional information

We believe this issue can be solved by adding authorization so if the user attempts to navigate to /dash without having the .env file properly configured it will redirect them to the config page.

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!
@dkinsell dkinsell added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant