mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
faeba7c17a
commit
483adf7040
1 changed files with 3 additions and 0 deletions
|
|
@ -18,4 +18,7 @@ class CustomBuildHook(BuildHookInterface):
|
|||
subprocess.run([npm, 'install', '--force'], check=True) # noqa: S603
|
||||
stderr.write('\n### npm run build\n')
|
||||
os.environ['APP_BUILD_HASH'] = version
|
||||
node_options = os.environ.get('NODE_OPTIONS', '')
|
||||
if '--max-old-space-size' not in node_options:
|
||||
os.environ['NODE_OPTIONS'] = f'{node_options} --max-old-space-size=8192'.strip()
|
||||
subprocess.run([npm, 'run', 'build'], check=True) # noqa: S603
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue