- Introduced a new server package with Fastify for handling API requests and workflows. - Implemented user authentication and authorization with JWT and cookie management. - Added endpoints for managing workflows, runs, and user accounts. - Established a dashboard for monitoring workflow status and statistics. - Included a script sandbox for executing user-defined scripts securely. - Updated README with setup instructions and API documentation. - Configured database migrations for user management. - Enhanced logging capabilities for better traceability.
10 lines
442 B
JavaScript
10 lines
442 B
JavaScript
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
export const SERVER_ROOT = path.dirname(fileURLToPath(import.meta.url));
|
|
export const SCRIPTS_DIR = path.join(SERVER_ROOT, "scripts");
|
|
export const WORKFLOWS_DIR = path.join(SERVER_ROOT, "workflows");
|
|
export const DATA_DIR = path.join(SERVER_ROOT, "data");
|
|
export const LOGS_DIR = path.join(SERVER_ROOT, "logs");
|
|
export const WEB_DIST = path.resolve(SERVER_ROOT, "../web/dist");
|