From 635977c107853cb45c3796185dd1904b02a38a0f Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Fri, 17 Nov 2023 22:52:48 +0700 Subject: [PATCH] Cherry Pick (#116) * chore: update gh actions nodejs version to 18 * config: disable ip forward in vercel json config * Update vercel.json * Update vercel.json --------- Co-authored-by: Yidadaa --- .github/workflows/app.yml | 4 ++-- vercel.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index b928ad6c15f..aebba28f7e2 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -18,7 +18,7 @@ jobs: - name: setup node uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: get version run: echo "PACKAGE_VERSION=$(node -p "require('./src-tauri/tauri.conf.json').package.version")" >> $GITHUB_ENV - name: create release @@ -59,7 +59,7 @@ jobs: - name: setup node uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: diff --git a/vercel.json b/vercel.json index f15487cfe26..1890a0f7dba 100644 --- a/vercel.json +++ b/vercel.json @@ -8,11 +8,11 @@ "headers": [ { "key": "X-Real-IP", - "value": "$1" + "value": "$remote_addr" }, { "key": "X-Forwarded-For", - "value": "$1, $proxy_add_x_forwarded_for" + "value": "$proxy_add_x_forwarded_for" }, { "key": "Host",