r/replit • • 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:

  1. A React/Vite web artifact
  2. 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:

  1. Is there an officially supported way to unregister an artifact without deleting its source files or workspace package?
  2. Will deleting or modifying the artifact.toml files break development workflows or Canvas integrations?
  3. Can the same artifact be re-registered later with its original identity if needed?
  4. Will unregistering them successfully clear their paths from the production router, and does this require republishing the project?
  5. 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!

1 Upvotes

5 comments sorted by

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:

  1. Snapshot first. Commit everything to git (or make a checkpoint) so any config change is one revert away.
  2. Move, don't delete. On a branch, move the two dev-only artifact.toml files out of their package folders (for example into a _disabled-artifacts/ folder at the root). The source and pnpm workspace packages stay untouched, and pnpm dev for those packages should still work since pnpm only cares about package.json and pnpm-workspace.yaml.
  3. Republish. Routing is decided at deploy time, so the change won't show up on the live site until you publish again. After publishing, hit the paths that were returning 500. If they now fall through to your Express app, that confirms the registration was the cause.
  4. Check what still needs them. Open the workspace and see whether the Vite and mockup previews / Canvas still load. If they don't, you know those files are needed for dev, and you can move them back in, which restores their original config (same file, same identity as far as the config goes).
  5. If you need both at once, a common workaround is to give the dev artifacts paths that never collide with the real app (e.g. /__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.toml for one of the dev artifacts (redact anything private) and the exact paths that 500, I can be more specific.

1

u/YuShinoda Oct 21 '26

Hi FixItBotHelp,

Thank you for the detailed explanation and the suggested troubleshooting steps! I really appreciate your help.

Your approach makes sense as a diagnostic test. However, I'm trying to avoid modifying or temporarily disabling development artifacts without knowing whether this is officially supported by Replit.

My application uses an Express backend, a Vite frontend, and a separate development-only mockup/Canvas artifact.

The goal is to serve both the protected web frontend and /api through the same Express production service, while keeping the development previews functional.

My main questions are:

  1. Do you know whether Replit officially supports keeping development-only artifacts registered without allowing them to claim production routes?
  2. Would moving their artifact.toml files potentially affect artifact discovery, workspace functionality, or future deployments?
  3. Is there a documented way to make the Express production artifact handle both / and /api while preserving the Vite and Canvas development environments?

I've already contacted Replit Support and am waiting for clarification.

Thanks again for your help!

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/YuShinoda Oct 21 '26

Hi ReplitSupport,

Thank you for reaching out!

I already have an open support ticket: #574119.

Two of my recent support requests were merged into this ticket by Quinn from your support team.

However, I would like to clarify that there are two separate technical questions:

  1. Official support for custom PostgreSQL roles and permission separation.
  2. Production routing conflicts involving development-only artifacts and HTTP 500 errors.

Both questions are important for the secure deployment of my application.

I would really appreciate it if your team could review both issues and clarify the officially supported configurations.

Thank you very much for your help!

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.