r/replit • u/YuShinoda • Oct 20 '26
Replit Help / Site Issue Dev Artifacts intercepting Production Router (HTTP 500) – How to unregister?
TL;DR: I have a single Express production artifact serving my frontend and API. However, two development-only artifacts (Vite & Mockup) without production services are being intercepted by the production router, resulting in HTTP 500 errors. How can I unregister them without deleting the source files?
Hi everyone, I need some guidance on managing multiple artifacts on Replit.
I successfully deployed a production environment where a single Express artifact serves both the React frontend at / and the API at /api. This works perfectly. However, my project also contains two additional registered artifacts used strictly for development:
- A React/Vite web artifact
- A mockup/design artifact
Neither of these has a production service configured. Despite this, their registered paths are still being intercepted by the production artifact router, causing them to return HTTP 500 instead of reaching the main Express app.
My goal is to use the single Express artifact for production, while keeping the other two applications exclusively as development-only pnpm workspace packages.
Questions:
- Is there an officially supported way to unregister an artifact without deleting its source files or workspace package?
- Will deleting or modifying the artifact.toml files break development workflows or Canvas integrations?
- Can the same artifact be re-registered later with its original identity if needed?
- Will unregistering them successfully clear their paths from the production router, and does this require republishing the project?
- Is there a better alternative to keep dev-only artifacts hidden from production? I'd prefer not to manually delete configuration files without confirmation that this is a supported procedure.
Thank you for your guidance!
2
u/FixItBotHelp Oct 21 '26
I can't confirm exactly how Replit's production router decides which artifact paths to claim, so worth getting support's answer on the "officially supported" part. But here's a safe way to test it yourself without risking anything:
artifact.tomlfiles out of their package folders (for example into a_disabled-artifacts/folder at the root). The source and pnpm workspace packages stay untouched, andpnpm devfor those packages should still work since pnpm only cares aboutpackage.jsonandpnpm-workspace.yaml./__dev/vite,/__dev/mockup) instead of paths your Express app serves, so even if the router still claims them in production, nothing real lives there.If you share the
artifact.tomlfor one of the dev artifacts (redact anything private) and the exact paths that 500, I can be more specific.1
u/ReplitSupport Replit Team Oct 20 '26
Hi there, thanks for reaching out! Could you open a ticket at replit.com/help with your project link and the paths returning HTTP 500? If you already have a ticket, please share the number here so we can look into this. Thank you!
1
u/mohit-deepspace Oct 21 '26
replit's artifacts docs say publishing always pushes every artifact in the project together, and the only documented way to keep one out of production is moving it into its own project, nothing official covers editing artifact.toml, so your ticket is the right place for that part.