sidecar network host

This commit is contained in:
2026-02-26 03:32:04 +00:00
parent 42abb97d7b
commit 466dc3adda
8 changed files with 310 additions and 420 deletions
+2 -4
View File
@@ -1,12 +1,10 @@
import { mkdir } from 'node:fs/promises';
import { dirname, join } from 'node:path';
import { homedir } from 'node:os';
import { createRouter } from '../../create-router';
import { DATA_PATH } from '@@/data-path';
import { DATA_PATH, SERVER_CONFIG_DIR } from '@@/data-path';
import { CustomError } from '../../custom-errors';
const configDir = `${homedir()}/.config/officer.dev`;
const googleConfigPath = join(configDir, 'google-oauth.json');
const googleConfigPath = join(SERVER_CONFIG_DIR, 'google-oauth.json');
const GOOGLE_SCOPES = [
'https://www.googleapis.com/auth/gmail.readonly',