1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 04:55:27 +02:00
This commit is contained in:
syuilo
2025-12-03 18:37:56 +09:00
parent eb1d07cd82
commit 4580ae1e30
2 changed files with 6 additions and 13 deletions

View File

@@ -3,8 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { path as configYamlPath } from '../../built/config.js';
import * as yaml from 'js-yaml';
import { compiledConfigFilePath } from '../../built/config.js';
import fs from "node:fs";
export function isConcurrentIndexMigrationEnabled() {
@@ -14,7 +13,7 @@ export function isConcurrentIndexMigrationEnabled() {
let loadedConfigCache = undefined;
function loadConfigInternal() {
const config = yaml.load(fs.readFileSync(configYamlPath, 'utf-8'));
const config = JSON.parse(fs.readFileSync(compiledConfigFilePath, 'utf-8'));
return {
disallowExternalApRedirect: Boolean(config.disallowExternalApRedirect ?? false),