I'm writing a script for a webapp, which I can only copy my code manually to its platform and not push it from my machine. In the code there are parts that use its API and parts that don't. I cannot split it into multiple modules as well. Everything should be on one file.
To be able to debug it on local, I need to change the parts using its API with my own code. However when it's time to upload it then I need to comment my parts and uncomment the API parts. Then undo that to debug again. Is there a way to skip these steps?
I use VS Code. The language is JS. The platform is Fibery.