fix web config
This commit is contained in:
@@ -100,6 +100,22 @@ function buildSite(site: SiteConfig, pages: ReturnType<typeof loadPages>): void
|
||||
writeFileSync(metadataPath, clientMetadata(site))
|
||||
console.log(` -> .well-known/client-metadata.json`)
|
||||
|
||||
// Generate apple-app-site-association for Universal Links (if appId is set)
|
||||
if (site.appId) {
|
||||
const aasa = {
|
||||
applinks: {
|
||||
apps: [],
|
||||
details: [{
|
||||
appID: site.appId,
|
||||
paths: ['/oauth/callback', '/oauth/callback/']
|
||||
}]
|
||||
}
|
||||
}
|
||||
const aasaPath = join(siteDir, '.well-known/apple-app-site-association')
|
||||
writeFileSync(aasaPath, JSON.stringify(aasa, null, 2))
|
||||
console.log(` -> .well-known/apple-app-site-association`)
|
||||
}
|
||||
|
||||
// Copy assets
|
||||
copyAssets(site)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user