File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff 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
151129app . use (
152130 '/locales' ,
You can’t perform that action at this time.
0 commit comments