From 325a605dc2f4967cc3582e9a64cb9f56039fd1db Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 23 May 2023 02:04:04 +0100 Subject: [PATCH] feat: add apple-app-site-association --- next.config.js | 14 ++++++++++++++ public/.well-known/apple-app-site-association | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 public/.well-known/apple-app-site-association diff --git a/next.config.js b/next.config.js index fecc049a..4c1eaf3c 100644 --- a/next.config.js +++ b/next.config.js @@ -121,5 +121,19 @@ module.exports = withBundleAnalyzer( ENV_POAP_API_KEY: process.env.POAP_API_KEY, ENV_OPENAI_API_KEY: process.env.OPENAI_API_KEY, }, + + async headers() { + return [ + { + source: "/.well-known/apple-app-site-association", + headers: [ + { + key: "Content-Type", + value: "application/json", + }, + ], + }, + ] + }, }), ) diff --git a/public/.well-known/apple-app-site-association b/public/.well-known/apple-app-site-association new file mode 100644 index 00000000..42e8b18e --- /dev/null +++ b/public/.well-known/apple-app-site-association @@ -0,0 +1,15 @@ +{ + "applinks": { + "details": [ + { + "appIDs": ["com.crossbell.xlog"], + "components": [ + { + "/": "/*", + "comment": "Matches any URL whose path starts with /" + } + ] + } + ] + } +} \ No newline at end of file