Skip to content

Commit 5eb5457

Browse files
committed
remove apple pay setup in server
1 parent 7742fd6 commit 5eb5457

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

server/server.js

-19
Original file line numberDiff line numberDiff line change
@@ -125,25 +125,6 @@ if (process.env.BASIC_USERNAME && process.env.BASIC_PASSWORD) {
125125
);
126126
}
127127

128-
// routing to serve files in .well-known with specific content type
129-
// temporary addition for the apple pay integration with donorbox
130-
app.use(
131-
'/.well-known/apple-developer-merchantid-domain-association',
132-
(req, res, next) => {
133-
const rootPath = path.resolve(__dirname, '../public/.well-known');
134-
const fileName = 'apple-developer-merchantid-domain-association';
135-
136-
res.setHeader('Content-Type', 'text/plain');
137-
138-
res.sendFile(fileName, { root: rootPath }, (err) => {
139-
if (err) {
140-
console.error('Error serving file:', err);
141-
next(err);
142-
}
143-
});
144-
}
145-
);
146-
147128
// Body parser, cookie parser, sessions, serve public assets
148129
app.use(
149130
'/locales',

0 commit comments

Comments
 (0)