fix(directus): resolve extension visibility and registration failures

- Corrected module_bar settings to restore custom extension visibility in UI.
- Fixed 'fs' dynamic require in acquisition endpoint by externalizing Node.js built-ins.
- Standardized local environment branding to AT Mintel.
This commit is contained in:
2026-02-12 21:20:28 +01:00
parent 7498c24c9a
commit a0ebc58d6d
3 changed files with 38 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ build({
target: 'node18',
outfile: outfile,
format: 'esm',
external: ["jsdom", "jsdom/*", "jquery", "jquery/*", "canvas"],
external: ["jsdom", "jsdom/*", "jquery", "jquery/*", "canvas", "fs", "path", "os", "http", "https", "zlib", "stream", "util", "url", "net", "tls", "crypto"],
plugins: [{
name: 'mock-canvas',
setup(build) {

View File

@@ -23,7 +23,7 @@ build({
outfile: outfile,
format: 'esm',
// Bundle everything, including Directus SDK, to avoid resolution issues in Docker
external: ["jsdom", "jsdom/*", "jquery", "jquery/*", "canvas"],
external: ["jsdom", "jsdom/*", "jquery", "jquery/*", "canvas", "fs", "path", "os", "http", "https", "zlib", "stream", "util", "url", "net", "tls", "crypto"],
plugins: [{
name: 'mock-canvas',
setup(build) {