Uploading and hosting the apple-app-site-association.json file on Webflow involves a few specific steps to ensure it's accessible without conflicts. Follow the guide below to achieve this:
1. Understanding Webflow Hosting Limitations
- Webflow does not allow direct hosting of
.json files that are not part of the visual assets (such as a lottie animation). - This limitation means that certain files, like the
apple-app-site-association.json, need alternative hosting or configuration methods.
2. Using a Third-Party Hosting Service
- The apple-app-site-association.json file can be hosted on a third-party service that allows static file hosting.
- Services like AWS (S3 & CloudFront), Netlify, or Vercel are popular choices.
3. Configuring Your DNS or Domain Settings
- If possible, configure your DNS settings to point certain subpaths or domains to these third-party services.
- Use subdomain configurations like
apple-app-site.yourdomain.com and host your file there.
4. Testing File Accessibility
- Once hosted externally, test the URL to ensure it is accessible publicly by visiting the direct link.
- Make sure the
.json file is served with the correct MIME type, which should be application/json.
5. Pointing Webflow’s Site to the Hosted File (Indirect Solution)
- While direct pointing in Webflow to an external file isn’t possible, consider creating documentation or client instructions that reference your hosted JSON file.
Summary
To host the apple-app-site-association.json file, use an external service like AWS or Netlify since Webflow cannot host such files directly. Configure your DNS for external file hosting and ensure that your file is accessible via a direct link with the correct MIME type.