Open robertthought opened 1 day ago
Great Job, you just exposed your hospitable.com API key 👏 No but for real, please delete the link to your bolt.new instance
but what's the problem? what's the bug exactly? also don't send us the code with your api key
I’m just playing around with it, I can just delete the api key. Just trying to learn.
The bug is that it doesn’t make continual progress, it seems to go backwards with some prompts. I don’t understand why it’s doing it and really just wasting my tokens. I only have 2M left for the month?
It deleted my api key about 15 times, is that normal? It kept overwriting it. It also kept defaulting back to the wrong hospitable.com URL. It was little mistakes that were burning credits as we weee going around in circles
On Wed, Oct 9, 2024 at 10:43 AM superresistant @.***> wrote:
but what's the problem? what's the bug exactly? also don't send us the code with your api key
— Reply to this email directly, view it on GitHub https://github.com/stackblitz/bolt.new/issues/305#issuecomment-2402543687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5JJ6VXDPB3A5VA3PS3D43Z2U6HZAVCNFSM6AAAAABPUUV73KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSGU2DGNRYG4 . You are receiving this because you authored the thread.Message ID: @.***>
continual progress
I would try to divide the code into files/features and work on one file at the time. From experience, it doesn't work to prompt about features and UI at the same time or too many things at the same time.
It deleted my api key about 15 times, is that normal?
It could be that you don't follow what bolt knows as a recommendation and bolt automatically overwrite. You should have a .env file that contain the key and a .gitignore that list the .env file not to be exported so that your key is protected. Could be something like that.
Try to ask bolt in a new chat how would he manages the key. I often ask him question like that so I follow what he knows best.
Describe the bug
Hey, it seems like on bolt.new - I am just going in circles and burning up my tokens. Its frustrating. I am not a coder by any means but I can clearly see it was making simple mistakes like constantly overwriting the API keys and no providing code when it needed to. I was bouncing back between claude and other apps for advice to try and figure out how to get this thing to give me what I want by asking better prompts.
It is frustrating because I feel like I know I can develop what I need, I can feel the progress, but then it takes like 10 steps backwards
Also when I manually refresh my page by accident, I lose chat history which is really frusterating as well if I want to reference it.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-39qrjp
Steps to reproduce
Review chat log https://bolt.new/~/sb1-39qrjp
Expected behavior
I tried to rewrite the initial prompt to be more detailed
Project Overview:
Core Functionalities
Technology Stack
Docs
File Structure
Here is the file structure we should follow.
Here's an explanation of the structure:
project-root/
: The main project folderclient/
: Frontend React applicationsrc/
: Source filescomponents/
: Reusable React componentspages/
: Components that represent full pageshooks/
: Custom React hooksutils/
: Utility functionsstyles/
: CSS or styled-component filespublic/
: Static assetsserver/
: Backend Node.js/Express applicationsrc/
: Source filescontrollers/
: Request handlersmodels/
: Database modelsroutes/
: API route definitionsutils/
: Utility functionsmiddleware/
: Custom middlewareshared/
: Shared code between client and servertypes/
: TypeScript type definitions (if using TypeScript)constants/
: Shared constant valuesThis structure keeps the frontend and backend separate while allowing for shared code. It's organized enough to scale but not overly complex.
Key files to include:
package.json
: For project dependencies and scripts.gitignore
: To specify files to ignore in version controlREADME.md
: Project documentationclient/
:src/App.js
: Main React componentsrc/index.js
: Entry point for React appserver/
:src/index.js
: Entry point for Express appsrc/app.js
: Express app configurationclient/
andserver/
:.env
: For environment variables (don't commit this to version control)This structure allows for easy separation of concerns while keeping related files close together. It's lean but can accommodate growth as your project expands.
Screen Recording / Screenshot
No response
Platform
Additional context
No response