perf: Lazy-load public-api dependencies to reduce baseline memory usage (#5049)
* refactor: Load swagger and openapi dependencies conditionally * disable public api in tests to reduce heal usage * update the link and text in SettingsApiView when swagger ui is disabled
This commit is contained in:
committed by
GitHub
parent
b828cb31d6
commit
a455cce7e6
@@ -19,6 +19,9 @@ if (inE2ETests) {
|
||||
EXTERNAL_FRONTEND_HOOKS_URLS: '',
|
||||
N8N_PERSONALIZATION_ENABLED: 'false',
|
||||
};
|
||||
}
|
||||
if (inTest) {
|
||||
process.env.N8N_PUBLIC_API_DISABLED = 'true';
|
||||
} else {
|
||||
dotenv.config();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user