-
Notifications
You must be signed in to change notification settings - Fork 392
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
feat(custom-setup): introduce custom npm registries #542
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ea06516:
|
Size changessandpack-react
Details
sandpack-client
Details
|
@@ -0,0 +1 @@ | |||
test:{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment mentioning this is only a test user with password test
Currently, Sandpack doesn’t have a way to consume private dependencies from any kind of registry service, because the bundler host is shared with all Sandpack consumers apps. However, you can pass local dependencies just like a regular file or using the external resource API: | ||
Read the following [guide](/guides/private-packages). | ||
|
||
#### How to load local dependencies? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESModules might also be a solution for local dependencies, as we support importing files as a full url. although it never really took of in codesandbox itself, don't even think we ever even announced that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
humm good to know. I think I'm going to work on local dependencies in another PR, where we could explore how Verdaccio can also help in this regard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added my suggestion for documentation changes.
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Co-authored-by: Roman Kuba <[email protected]>
Documentation preview: https://1gemwv-3000.preview.csb.app/guides/private-packages
