File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -130,14 +130,12 @@ if (process.env.BASIC_USERNAME && process.env.BASIC_PASSWORD) {
130130app . use (
131131 '/.well-known/apple-developer-merchantid-domain-association' ,
132132 ( req , res , next ) => {
133- const filePath = path . resolve (
134- __dirname ,
135- '../public/.well-known/apple-developer-merchantid-domain-association'
136- ) ;
133+ const rootPath = path . resolve ( __dirname , '../public/.well-known' ) ;
134+ const fileName = 'apple-developer-merchantid-domain-association' ;
137135
138136 res . setHeader ( 'Content-Type' , 'text/plain' ) ;
139137
140- res . sendFile ( filePath , ( err ) => {
138+ res . sendFile ( fileName , { root : rootPath } , ( err ) => {
141139 if ( err ) {
142140 console . error ( 'Error serving file:' , err ) ;
143141 next ( err ) ;
You can’t perform that action at this time.
0 commit comments