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');