feat: Self-hosted Artifacts Static Bundler URL (#6827)

* v0.7.791

* feat: configuration via `SANDPACK_STATIC_BUNDLER_URL` env var and update bundlerURL logic in Artifact components

* fix: update minimum length requirement for auth fields from 10 to 1 character
This commit is contained in:
Danny Avila 2025-04-10 15:37:23 -04:00 committed by GitHub
parent e16a6190a5
commit 12f4dbb8c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 15 additions and 9 deletions

View file

@ -46,11 +46,15 @@ export const ArtifactPreview = memo(function ({
if (!config) {
return sharedOptions;
}
return {
const _options: typeof sharedOptions = {
...sharedOptions,
bundlerURL: config.bundlerURL,
bundlerURL: template === 'static' ? config.staticBundlerURL : config.bundlerURL,
};
}, [config]);
return _options;
}, [config, template]);
console.log(options);
if (Object.keys(artifactFiles).length === 0) {
return null;