I’ve recently encountered an issue that I’m hoping this community might help me unravel. There was a similar discussion on this forum, but it was presented in a different language and revolved around forked repls, so it doesn’t exactly apply to my situation.
My problem arises when I attempt to embed my project into my website or when I use the cover page without being logged into an account. In these situations, an error message appears, indicating that the ‘password’ is missing. Just to clarify, this ‘password’ is an environment variable and it does exist within my project setup. Interestingly, this issue only manifests when the user is not signed in.
To better illustrate this issue, I invite you to visit: https://replit.com/@HexHands/GOLD-PILE?v=1. Once there, type ‘die’, then ‘y’, and try uploading your score. This will demonstrate the issue i’m currently facing.
Since Replit is running this code on their servers I don’t see why the environment var should disappear.
Might be a problem with how the password environment variable is being handled in your project’s setup. since it doesn’t exist, Try making it. See if it solves the issue.
Basically, when you run a Repl, it creates a ghost fork. And when you fork a Repl, the environment variables aren’t saved (assuming you’re using secrets).
oh shoot. The ghost forking issue is unrelated to hosting a website on Repl.it. It’s a platform-specific behavior that may occur in various scenarios and is typically addressed by the Repl.it development team.