Skip to main content
When you upload your project to Virtus Cloud, the platform automatically removes a set of well-known files and directories before your application starts. These items are typically generated by local development tools, package managers, version control systems, or IDE configurations — none of which belong in a production container. Removing them reduces your deployment package size, speeds up the install process, and ensures your application runs from a clean, reproducible state every time you deploy. Understanding which files are removed helps you structure your project correctly and avoid confusion when files you see locally don’t appear in the file manager.

Why Virtus Cloud Removes These Files

Production environments don’t need local tooling artifacts. Files like node_modules are rebuilt from package.json during deployment, so shipping them wastes bandwidth and storage. Files like .git expose your repository history to anyone with container access and are irrelevant at runtime. Files like .replit and replit.nix are specific to the Replit development environment and have no meaning on Virtus Cloud infrastructure. By stripping these files automatically, Virtus Cloud ensures that every deployment starts from the same clean baseline regardless of which editor, OS, or development platform you used to write your code.

Files Removed During Deployment

The following files and directories are automatically deleted when you deploy an application to Virtus Cloud:
These are regenerated from your dependency manifest during deployment, so uploading them would overwrite the correctly compiled versions anyway.
File / DirectoryReason Removed
node_modulesRebuilt from package.json during install
package-lock.jsonRegenerated by npm during install
yarn.lockRegenerated by Yarn during install
Cargo.lockRegenerated by Cargo (Rust) during build
targetRust build output directory
.venvPython virtual environment; rebuilt from requirements.txt
.npmnpm cache directory
__pycache__Python bytecode cache; regenerated at runtime
pycacheAlternate Python bytecode cache path
Version control data is not needed at runtime and can expose sensitive commit history or secrets stored in tracked files.
File / DirectoryReason Removed
.gitGit repository history and config
.huskyGit hook scripts (development only)
Editor settings are personal to your local environment and have no effect — or adverse effects — inside a production container.
File / DirectoryReason Removed
.vscodeVisual Studio Code workspace settings
.breakpointsDebugger breakpoints from local IDE
These files are generated by the Replit development environment and are meaningless outside of it.
File / DirectoryReason Removed
.replitReplit project configuration
replit.nixReplit Nix package definition
replit_zip_error_log.txtReplit internal error log
.upmReplit Universal Package Manager data
These directories hold machine-specific configuration or cached data that should never be used inside a shared container.
File / DirectoryReason Removed
.cacheGeneric local cache directory
.configUser-level application config
.localUser local data directory
.pkiLocal PKI/certificate storage
.npmnpm’s local cache
Framework build outputs are regenerated during deployment. Uploading stale build caches can cause your application to run outdated code.
File / DirectoryReason Removed
.nextNext.js build output
.logsLocally generated log files
File / DirectoryReason Removed
.composerPHP Composer cache
.dockerenvDocker environment marker file
.npmrcnpm registry configuration (may contain auth tokens)

Complete Reference List

For quick reference, here is the full list of removed paths in alphabetical order:
.breakpoints
.cache
.composer
.config
.dockerenv
.git
.husky
.local
.logs
.next
.npm
.npmrc
.pki
.replit
.upm
.venv
.vscode
__pycache__
Cargo.lock
node_modules
package-lock.json
pycache
replit.nix
replit_zip_error_log.txt
target
yarn.lock

What You Should Do

1

Keep your dependency manifests up to date

Make sure package.json (Node.js) or requirements.txt (Python) lists all the packages your application needs. Virtus Cloud reinstalls dependencies from these files on every deployment.
2

Do not commit secrets inside removed directories

Files like .npmrc can contain authentication tokens. Because Virtus Cloud removes this file during deployment, any registry credentials stored there won’t be available to your application. Use environment variables in the dashboard to pass sensitive values instead.
3

Don't rely on local build outputs

Don’t upload pre-built .next directories or compiled target binaries. The platform’s build step regenerates these correctly for the production environment.
If a file you need at runtime is being removed unexpectedly, check whether its name matches one of the patterns above. Rename it or restructure your project to avoid the conflict. If you believe a file is being removed in error, contact the support team.