fix(directus): resolve login failures and standardize project branding
- Fixed project isolation bypass (identity shadowing) by prefixing database service name. - Standardized health check paths and protocols in docker-compose.yml. - Resolved extension SyntaxError caused by duplicate banner injections in build scripts. - Migrated extension build system to clean esbuild-based bundles (removing shims). - Updated sync-directus.sh for project-prefixed service name. - Synchronized latest production data and branding (AT Mintel).
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import "./shim";
|
||||
import { defineEndpoint } from "@directus/extensions-sdk";
|
||||
import { AcquisitionService, PdfEngine } from "../../acquisition-library/src/index";
|
||||
import { AcquisitionService, PdfEngine } from "@mintel/acquisition";
|
||||
import { render, SiteAuditTemplate, ProjectEstimateTemplate } from "@mintel/mail";
|
||||
import { createElement } from "react";
|
||||
import * as path from "path";
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname } from 'path';
|
||||
import { createRequire } from 'module';
|
||||
|
||||
try {
|
||||
const url = import.meta?.url;
|
||||
// Hardcode fallback path for Directus Docker environment
|
||||
const fallbackPath = '/directus/extensions/acquisition/dist/index.js';
|
||||
const filename = url ? fileURLToPath(url) : fallbackPath;
|
||||
const dir = dirname(filename);
|
||||
|
||||
// @ts-ignore
|
||||
globalThis.__filename = filename;
|
||||
// @ts-ignore
|
||||
globalThis.__dirname = dir;
|
||||
// @ts-ignore
|
||||
globalThis.require = createRequire(url || `file://${fallbackPath}`);
|
||||
|
||||
console.log(`[Shim] Loaded. __dirname: ${dir}`);
|
||||
} catch (e) {
|
||||
console.warn("[Shim] Failed to shim __dirname/require", e);
|
||||
}
|
||||
Reference in New Issue
Block a user