From 5ee740bd671d1c15be510162d26bcb3335dc0d60 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sat, 5 Aug 2023 10:36:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Potential=20fix=20for=20internal?= =?UTF-8?q?=20next=20auth=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 - next.config.js | 1 + package.json | 2 +- yarn.lock | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dcdde5c31..cebba553c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,5 @@ EXPOSE 7575 ENV PORT 7575 ENV NEXTAUTH_SECRET NOT_IN_USE_BECAUSE_JWTS_ARE_UNUSED -ENV NEXTAUTH_URL_INTERNAL http://homarr:7575 CMD ["sh", "./scripts/run.sh"] diff --git a/next.config.js b/next.config.js index bdf978756..28aad746b 100644 --- a/next.config.js +++ b/next.config.js @@ -20,4 +20,5 @@ module.exports = withBundleAnalyzer({ permanent: false, }, ], + env: process.env.NEXTAUTH_URL_INTERNAL || process.env.HOSTNAME || 'http://localhost:3000', }); diff --git a/package.json b/package.json index d02c0e222..44e5c47a9 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "i18next": "^22.5.1", "js-file-download": "^0.4.12", "next": "13.4.10", - "next-auth": "^4.21.0", + "next-auth": "^4.22.3", "next-i18next": "^13.0.0", "nzbget-api": "^0.0.3", "prismjs": "^1.29.0", diff --git a/yarn.lock b/yarn.lock index 222e497ee..4ca829c2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5904,7 +5904,7 @@ __metadata: i18next: ^22.5.1 js-file-download: ^0.4.12 next: 13.4.10 - next-auth: ^4.21.0 + next-auth: ^4.22.3 next-i18next: ^13.0.0 node-mocks-http: ^1.12.2 nzbget-api: ^0.0.3 @@ -7360,7 +7360,7 @@ __metadata: languageName: node linkType: hard -"next-auth@npm:^4.21.0": +"next-auth@npm:^4.22.3": version: 4.22.3 resolution: "next-auth@npm:4.22.3" dependencies: