슈퍼어드민 디스코드 ID를 저장소에서 제거: 서버 deploy/.env의 SUPERADMIN_DISCORD_IDS에만 둔다
- config: 기본값 삭제(설정이 없으면 슈퍼어드민 없음) - 테스트·E2E: 만든 ID(900000000000000001/2) 사용 - 문서·README·.env.example·관리자 화면 입력 예시에서 실제 ID 삭제 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,9 +13,10 @@ const PORT = Number(process.env.E2E_PORT ?? 4518);
|
||||
const ORIGIN = `http://localhost:${PORT}`;
|
||||
const SHOTS = process.env.E2E_SHOTS ?? join(import.meta.dir, '../test-results');
|
||||
mkdirSync(SHOTS, { recursive: true });
|
||||
const SUPER = '293719842274541579';
|
||||
/** Made-up ID; the real superadmin IDs live only in deploy/.env. */
|
||||
const SUPER = '900000000000000001';
|
||||
|
||||
const config = loadConfig({ PORT: String(PORT), DB_PATH: join(mkdtempSync(join(process.env.TMPDIR ?? '/tmp', 'bg-e2e-')), 'app.db'), PUBLIC_ORIGIN: ORIGIN });
|
||||
const config = loadConfig({ PORT: String(PORT), DB_PATH: join(mkdtempSync(join(process.env.TMPDIR ?? '/tmp', 'bg-e2e-')), 'app.db'), PUBLIC_ORIGIN: ORIGIN, SUPERADMIN_DISCORD_IDS: SUPER });
|
||||
config.discord = { clientId: 'e2e', clientSecret: 'e2e' };
|
||||
const app = startServer({
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user