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) {
130
130
app . use (
131
131
'/.well-known/apple-developer-merchantid-domain-association' ,
132
132
( 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' ;
137
135
138
136
res . setHeader ( 'Content-Type' , 'text/plain' ) ;
139
137
140
- res . sendFile ( filePath , ( err ) => {
138
+ res . sendFile ( fileName , { root : rootPath } , ( err ) => {
141
139
if ( err ) {
142
140
console . error ( 'Error serving file:' , err ) ;
143
141
next ( err ) ;
You can’t perform that action at this time.
0 commit comments