Report this

What is the reason for this report?

React deployment: How do I prevent /workspaces folder from being served and visible in Sources?

Posted on October 26, 2022

Hey, I am serving some react app from my git repository with basic $5 web service using nodejs buildpack on Digital Ocean. For some reason if go to the website the whole SOURCE CODE of my app is visible in the dev tools in the Source, in a /workplace folder.

How do I prevent this? This does not happen when I serve the build locally or when using the free starter droplet. I dont want the whole source code to be visible in the sources!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.