Skip to content

Commit

Permalink
remove server code
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim committed Dec 5, 2024
1 parent 3476668 commit 60b1b89
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,28 +125,6 @@ if (process.env.BASIC_USERNAME && process.env.BASIC_PASSWORD) {
);
}

// routing to serve files in .well-known with specific content type
// temporary addition for the apple pay integration with donorbox
app.use(
'/.well-known/apple-developer-merchantid-domain-association',
(req, res, next) => {
const rootPath = path.join(__dirname, '../public/.well-known');
const fileName = 'apple-developer-merchantid-domain-association';

console.log('rootPath 5: ', rootPath);
console.log('fileName 5: ', fileName);

res.setHeader('Content-Type', 'text/plain');

res.sendFile(fileName, { root: rootPath }, (err) => {
if (err) {
console.error('Error serving file:', err);
next(err);
}
});
}
);

// Body parser, cookie parser, sessions, serve public assets
app.use(
'/locales',
Expand Down

0 comments on commit 60b1b89

Please sign in to comment.