mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-04 21:44:09 +02:00
Update config.ts
This commit is contained in:
@@ -228,6 +228,10 @@ const dir = `${_dirname}/../../../.config`;
|
|||||||
export const path = resolve(dir, '.config.json');
|
export const path = resolve(dir, '.config.json');
|
||||||
|
|
||||||
export function loadConfig(): Config {
|
export function loadConfig(): Config {
|
||||||
|
if (!fs.existsSync(path)) {
|
||||||
|
throw new Error('Compiled configuration file not found. Try running \'pnpm convert:config\'.');
|
||||||
|
}
|
||||||
|
|
||||||
const meta = JSON.parse(fs.readFileSync(`${_dirname}/../../../built/meta.json`, 'utf-8'));
|
const meta = JSON.parse(fs.readFileSync(`${_dirname}/../../../built/meta.json`, 'utf-8'));
|
||||||
|
|
||||||
const frontendManifestExists = fs.existsSync(_dirname + '/../../../built/_frontend_vite_/manifest.json');
|
const frontendManifestExists = fs.existsSync(_dirname + '/../../../built/_frontend_vite_/manifest.json');
|
||||||
|
|||||||
Reference in New Issue
Block a user