mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
wip
This commit is contained in:
@@ -17,7 +17,7 @@ const _filename = fileURLToPath(import.meta.url);
|
|||||||
const _dirname = dirname(_filename);
|
const _dirname = dirname(_filename);
|
||||||
|
|
||||||
const configDir = resolve(_dirname, '../../../.config');
|
const configDir = resolve(_dirname, '../../../.config');
|
||||||
const OUTPUT_PATH = resolve(_dirname, '../../../built/.config.json');
|
const OUTPUT_PATH = resolve(_dirname, '../../../.config/.config.json');
|
||||||
|
|
||||||
// TODO: yamlのパースに失敗したときのエラーハンドリング
|
// TODO: yamlのパースに失敗したときのエラーハンドリング
|
||||||
|
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export type FulltextSearchProvider = 'sqlLike' | 'sqlPgroonga' | 'meilisearch';
|
|||||||
const _filename = fileURLToPath(import.meta.url);
|
const _filename = fileURLToPath(import.meta.url);
|
||||||
const _dirname = dirname(_filename);
|
const _dirname = dirname(_filename);
|
||||||
|
|
||||||
export const compiledConfigFilePath = resolve(_dirname, '../../../built/.config.json');
|
export const compiledConfigFilePath = resolve(_dirname, '../../../.config/.config.json');
|
||||||
|
|
||||||
export function loadConfig(): Config {
|
export function loadConfig(): Config {
|
||||||
if (!fs.existsSync(compiledConfigFilePath)) {
|
if (!fs.existsSync(compiledConfigFilePath)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user