mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 07:36:42 +08:00
21 lines
373 B
TypeScript
21 lines
373 B
TypeScript
import { defineModuleConfig } from '../../base';
|
|
|
|
export interface WorkerStartupConfigurations {
|
|
allowedOrigin: string[];
|
|
}
|
|
|
|
declare global {
|
|
interface AppConfigSchema {
|
|
worker: {
|
|
allowedOrigin: ConfigItem<string[]>;
|
|
};
|
|
}
|
|
}
|
|
|
|
defineModuleConfig('worker', {
|
|
allowedOrigin: {
|
|
desc: 'Allowed origin',
|
|
default: ['localhost', '127.0.0.1'],
|
|
},
|
|
});
|