chore: update start script in package.json and adjust Svelte adapter configuration for improved deployment flexibility

This commit is contained in:
Rotimi Best
2026-05-19 08:15:35 +01:00
parent 65962b49d5
commit 86ebe9ef62
6 changed files with 27 additions and 9 deletions
+7 -1
View File
@@ -49,7 +49,13 @@ function resolveUrl(override?: string): string {
export function createRedisConnection(options: RedisConnectionOptions = {}): Redis {
const { url, ...rest } = options;
const resolved = resolveUrl(url);
return new IORedis(resolved, { ...DEFAULT_OPTIONS, ...rest });
const connection = new IORedis(resolved, { ...DEFAULT_OPTIONS, ...rest });
connection.on('error', (error) => {
console.error('BullMQ Redis connection error:', error);
});
return connection;
}
let sharedConnection: Redis | undefined;