feat(server): self-hosted worker (#10085)

This commit is contained in:
DarkSky
2025-02-12 08:01:57 +08:00
committed by GitHub
parent 19f0eb1931
commit 88a3a2d13b
23 changed files with 817 additions and 20 deletions
@@ -0,0 +1,15 @@
import { defineStartupConfig, ModuleConfig } from '../../base/config';
export interface WorkerStartupConfigurations {
allowedOrigin: string[];
}
declare module '../config' {
interface PluginsConfig {
worker: ModuleConfig<WorkerStartupConfigurations>;
}
}
defineStartupConfig('plugins.worker', {
allowedOrigin: ['localhost', '127.0.0.1'],
});