@realtimex/email-automator 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/server.ts +1 -0
- package/api/src/config/index.ts +1 -1
- package/dist/api/server.js +1 -0
- package/dist/api/src/config/index.js +1 -1
- package/package.json +1 -1
package/api/server.ts
CHANGED
|
@@ -68,6 +68,7 @@ app.use('/api', routes);
|
|
|
68
68
|
|
|
69
69
|
// Serve static files - robust resolution for compiled app and NPX
|
|
70
70
|
const distPath = process.env.ELECTRON_STATIC_PATH || path.join(process.cwd(), 'dist');
|
|
71
|
+
logger.info('Serving static assets', { path: distPath });
|
|
71
72
|
app.use(express.static(distPath));
|
|
72
73
|
|
|
73
74
|
// Handle client-side routing
|
package/api/src/config/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ dotenv.config({ path: join(process.cwd(), '.env') });
|
|
|
10
10
|
|
|
11
11
|
// 2. Fallback to package root (where the binary lives)
|
|
12
12
|
// In dist/api/src/config/index.js, the root is 4 levels up
|
|
13
|
-
dotenv.config({ path: join(__dirname, '..', '..', '..', '.env') });
|
|
13
|
+
dotenv.config({ path: join(__dirname, '..', '..', '..', '..', '.env') });
|
|
14
14
|
|
|
15
15
|
function parseArgs(args: string[]): { port: number | null, noUi: boolean } {
|
|
16
16
|
const portIndex = args.indexOf('--port');
|
package/dist/api/server.js
CHANGED
|
@@ -57,6 +57,7 @@ app.use('/api', apiRateLimit);
|
|
|
57
57
|
app.use('/api', routes);
|
|
58
58
|
// Serve static files - robust resolution for compiled app and NPX
|
|
59
59
|
const distPath = process.env.ELECTRON_STATIC_PATH || path.join(process.cwd(), 'dist');
|
|
60
|
+
logger.info('Serving static assets', { path: distPath });
|
|
60
61
|
app.use(express.static(distPath));
|
|
61
62
|
// Handle client-side routing
|
|
62
63
|
app.get(/.*/, (req, res, next) => {
|
|
@@ -7,7 +7,7 @@ const __dirname = dirname(__filename);
|
|
|
7
7
|
dotenv.config({ path: join(process.cwd(), '.env') });
|
|
8
8
|
// 2. Fallback to package root (where the binary lives)
|
|
9
9
|
// In dist/api/src/config/index.js, the root is 4 levels up
|
|
10
|
-
dotenv.config({ path: join(__dirname, '..', '..', '..', '.env') });
|
|
10
|
+
dotenv.config({ path: join(__dirname, '..', '..', '..', '..', '.env') });
|
|
11
11
|
function parseArgs(args) {
|
|
12
12
|
const portIndex = args.indexOf('--port');
|
|
13
13
|
let port = null;
|