mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-16 04:36:34 +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
|
|
@ -132,9 +132,9 @@ export const ArtifactCodeEditor = memo(function ({
|
|||
}
|
||||
return {
|
||||
...sharedOptions,
|
||||
bundlerURL: config.bundlerURL,
|
||||
bundlerURL: template === 'static' ? config.staticBundlerURL : config.bundlerURL,
|
||||
};
|
||||
}, [config]);
|
||||
}, [config, template]);
|
||||
|
||||
if (Object.keys(files).length === 0) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue