Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to "host" the app #1116

Open
2 tasks done
samdoeswork opened this issue Apr 5, 2024 · 2 comments
Open
2 tasks done

How to "host" the app #1116

samdoeswork opened this issue Apr 5, 2024 · 2 comments
Labels
triage New issues that needs consideration

Comments

@samdoeswork
Copy link

Tell us how you think we can improve Sandpack

Firstly I LOVE what you've made. Thank you so much!

I want my users to build mini-apps inside a larger app. I've created a really nice flow with Monaco and Sandpack.

Problem is when users have actually built the mini-app, it's unclear how to put it into prod.

I'm currently using the Sandpack preview component but this has a "Open in sandbox" button and a "Sandpack preview" title over the top which are both confusing in this context. (E.g. the app admin adds a cool user-defined feature, but the users who come to use it will be very confused by these.)

Packages affected

  • sandpack-client
  • sandpack-react

What is this feature?

Advice on how to actually "deploy" the outcome. Or a deploy-mode.

How would your idea work?

Possibly pack the whole thing out to S3 or GCS bucket. Or a component like the preview one but for deployment.

Do you have any examples of how you would like to see us implement it?

@samdoeswork samdoeswork added the triage New issues that needs consideration label Apr 5, 2024
@samdoeswork
Copy link
Author

Obviously I can write a little piece of hacky script to hide the Open Sandbox UI and continue using the preview panel. But this seems both brittle and wrong. I'd like to use the correct approach - just unsure what that is.

@samdoeswork
Copy link
Author

Sorry - just saw showRefreshButton={false} showOpenInCodeSandbox={false} options. I think when I looked for thses previously I saw a thread about them not existing so I guess they are new-ish.

That really helps.

Leaving the issue open though as I believe it's still useful to get some guidance on how to host user-built apps with Sandpack. Using the preview works but seems inefficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage New issues that needs consideration
Projects
None yet
Development

No branches or pull requests

1 participant