Skip to content

Commit

Permalink
remove apple pay setup in server
Browse files Browse the repository at this point in the history
  • Loading branch information
raclim committed Dec 5, 2024
1 parent 7742fd6 commit 5eb5457
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +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.resolve(__dirname, '../public/.well-known');
const fileName = 'apple-developer-merchantid-domain-association';

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 5eb5457

Please sign in to comment.