Skip to content

Commit 60b1b89

Browse files
committed
remove server code
1 parent 3476668 commit 60b1b89

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

server/server.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -125,28 +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.join(__dirname, '../public/.well-known');
134-
const fileName = 'apple-developer-merchantid-domain-association';
135-
136-
console.log('rootPath 5: ', rootPath);
137-
console.log('fileName 5: ', fileName);
138-
139-
res.setHeader('Content-Type', 'text/plain');
140-
141-
res.sendFile(fileName, { root: rootPath }, (err) => {
142-
if (err) {
143-
console.error('Error serving file:', err);
144-
next(err);
145-
}
146-
});
147-
}
148-
);
149-
150128
// Body parser, cookie parser, sessions, serve public assets
151129
app.use(
152130
'/locales',

0 commit comments

Comments
 (0)