This is a template for creating a new tenant nextjs app. It is a work in progress.
yarn install
yarn dev
yarn prisma generate
yarn prisma migrate dev
Associate iOS Bundle Ids to this domain
- update
public/.well-known/apple-app-site-association
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<Bundle ID>",
"paths": ["*"]
}
]
}
}
- for next.js ensure
public/.well-known
is servedcontent-type
asapplication/json
by configuringnext.config.js
...
async headers() {
return [
{
source: "/.well-known/apple-app-site-association",
headers: [{ key: "content-type", value: "application/json" }],
},
];
},
...
- test the association
curl -v <domain>/.well-known/apple-app-site-association