snowball-tools / snowball-tenant-passkey-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snowball-tenant-template

This is a template for creating a new tenant nextjs app. It is a work in progress.

Installation

yarn install

Development

yarn dev

Prisma

Generate Prisma Client

yarn prisma generate

Migrate Database

yarn prisma migrate dev

Apple App Association (for now, this will need to become dynamic)

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 served content-type as application/json by configuring next.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

About

License:MIT License


Languages

Language:TypeScript 88.5%Language:CSS 6.4%Language:JavaScript 5.1%