mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 02:40:14 +01:00
⚡ 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:
parent
e16a6190a5
commit
12f4dbb8c5
7 changed files with 15 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue