Skip to content

Sandpack and shareable links #4939

Answered by CompuIves
NinoMaj asked this question in General
Sep 25, 2020 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hey @NinoMaj!

Good questions. To answer:

  1. No, everything will stay local to Sandpack. getCodeSandboxURL will generate the sandbox as soon as you call it, not before that. The ID won't be guessable.
  2. It's possible to fork the sandbox generated by getCodeSandboxURL under a pro account and make it private, but the preview will only accessible by people who also have access to the code. The reason for this is the fact that we execute the code in the browser, so for the preview to actually show something it needs to download the code for execution. This means that savvy users will always be able to access the minified code.

I hope this answers your questions, let me know if you have any other …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@NinoMaj
Comment options

@CompuIves
Comment options

@NinoMaj
Comment options

Answer selected by CompuIves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants