From 3476668186a9f37f7b4c6acf3565e269519bf566 Mon Sep 17 00:00:00 2001 From: raclim Date: Wed, 4 Dec 2024 17:04:13 -0500 Subject: [PATCH] remove slash --- server/server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.js b/server/server.js index 7f1044b8e..120d9b5e6 100644 --- a/server/server.js +++ b/server/server.js @@ -130,11 +130,11 @@ if (process.env.BASIC_USERNAME && process.env.BASIC_PASSWORD) { app.use( '/.well-known/apple-developer-merchantid-domain-association', (req, res, next) => { - const rootPath = path.join(process.cwd(), '/../public/.well-known'); + const rootPath = path.join(__dirname, '../public/.well-known'); const fileName = 'apple-developer-merchantid-domain-association'; - console.log('rootPath 3: ', rootPath); - console.log('fileName 3: ', fileName); + console.log('rootPath 5: ', rootPath); + console.log('fileName 5: ', fileName); res.setHeader('Content-Type', 'text/plain');