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

Use webcontainers for code artifacts #374

Open
2 tasks
marcusschiesser opened this issue Oct 15, 2024 · 0 comments
Open
2 tasks

Use webcontainers for code artifacts #374

marcusschiesser opened this issue Oct 15, 2024 · 0 comments
Assignees

Comments

@marcusschiesser
Copy link
Collaborator

marcusschiesser commented Oct 15, 2024

  • Add a /sandbox route that uses https://webcontainers.io/ instead of e2b to execute the code (for Python and TS) - the result is that we have two sandbox routes, one for E2B and one for webcontainers
  • In the generated code, we only want one route, hence we copy the route as a component. Which route to select depends on the selected tool; for web containers, we add artifact[webcontainers]

Note: Webcontainers only work with generated TS code, but our code generator tool works for Python and TS (so we need to test both).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant