linkkf 수정3

This commit is contained in:
2025-12-25 19:50:27 +09:00
parent 426df4ab43
commit 8f8ffb4937
29 changed files with 20496 additions and 1422 deletions

View File

@@ -0,0 +1,14 @@
import { readFileSync } from 'fs';
import * as yaml from 'js-yaml';
import { join } from 'path';
const YAML_CONFIG_PROD = 'production.yaml';
const YAML_CONFIG_DEV = 'development.yaml';
export default () => {
return yaml.load(
process.env.NODE_ENV === 'production'
? readFileSync(join(__dirname, YAML_CONFIG_PROD), 'utf8')
: readFileSync(join(__dirname, YAML_CONFIG_DEV), 'utf8'),
) as Record<string, any>;
};

View File

@@ -0,0 +1,2 @@
server:
port: 7070

View File

@@ -0,0 +1,2 @@
server:
port: 3003