CodeSandbox Preview Not Showing for Private Sandbox
Quick answer
Private VM Sandboxes still need a preview token, and public previews are not supported for private VMs. Setting the sandbox privacy to Unlisted often fixes it.
Most likely fix: Change privacy to Unlisted
How to fix it
Try these in order — the most common fix is first.
1. Change privacy to Unlisted
- Open the VM Sandbox in the editor
- Open its privacy settings
- Switch from Private to Unlisted
- Reload the preview link
Did this fix it?2. Share through workspace access instead
- Invite the person to your workspace so they can open the private sandbox
Did this fix it?
Symptoms
The preview URL returns an error or access page for people you share it with.
Why it happens
- Private VM Sandbox shared as a public preview link
- Viewer not signed in or without access to the workspace
This guide also covers
- codesandbox preview not working
- codesandbox private sandbox preview
- codesandbox preview token
Still not working?
If CodeSandbox keeps failing, you're not alone. See every CodeSandbox problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
Other CodeSandbox errors
- CodeSandbox 502 "Dev Server Has Not Started Yet" Error
- CodeSandbox Not Loading or Not Starting
- CodeSandbox VM Frozen: Credits Ran Out
- CodeSandbox "Request Entity Too Large" Error on Import or Commit
- CodeSandbox "Only a Max of 250 Modules Is Allowed" Import Error
- CodeSandbox "Could Not Find Dependency" Error
- CodeSandbox VM Slow or Out of Memory
- CodeSandbox Private Sandboxes on the Free Plan