From 402d391b2c73c7adabe24c5cd37dbf7d2f854031 Mon Sep 17 00:00:00 2001 From: raclim Date: Wed, 4 Dec 2024 16:21:14 -0500 Subject: [PATCH] change from resolve to join --- server/server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.js b/server/server.js index 7b22b5281..fa93e2120 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.resolve(__dirname, '../public/.well-known'); + const rootPath = path.join(__dirname, '../public/.well-known'); const fileName = 'apple-developer-merchantid-domain-association'; - console.log('rootPath: ', rootPath); - console.log('fileName: ', fileName); + console.log('rootPath 2: ', rootPath); + console.log('fileName 2: ', fileName); res.setHeader('Content-Type', 'text/plain');