mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
Adjust const one more time
This commit is contained in:
parent
8bcb2b3b0f
commit
5d34bd82c0
13 changed files with 13 additions and 26 deletions
|
@ -37,8 +37,7 @@ export default async function migration() {
|
|||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
const rawConfig = yaml.load(fileContents) as any;
|
||||
|
||||
if (rawConfig.server?.trust_proxy) {
|
||||
rawConfig.server.trust_proxy = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue