mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
The renderer's settings now read RENDERER_HOST, RENDERER_PORT, RENDERER_MAX_CONCURRENT_RENDERS, RENDERER_RENDER_TIMEOUT_MS, RENDERER_MAX_OPTIONS, and RENDERER_MAX_OPTION_CHARS, so they read as renderer settings and cannot clash with the bot's variables, which Coolify injects into every service. NODE_ENV keeps its standard name. BREAKING CHANGE: the unprefixed HOST, PORT, MAX_CONCURRENT_RENDERS, RENDER_TIMEOUT_MS, MAX_OPTIONS, and MAX_OPTION_CHARS are no longer read by the renderer.
11 lines
371 B
JavaScript
11 lines
371 B
JavaScript
import {describe, expect, test} from 'vitest';
|
|
import {loadConfig, minRenderTimeoutMs} from '../src/config.js';
|
|
|
|
describe('loadConfig', () => {
|
|
test('keeps render timeout compatible with Remotion browser timeout limits', () => {
|
|
const config = loadConfig({RENDERER_RENDER_TIMEOUT_MS: '500'});
|
|
|
|
expect(config.renderTimeoutMs).toBe(minRenderTimeoutMs);
|
|
});
|
|
});
|