{
  "redirects": [
    {
      "source": "/support/:path*",
      "destination": "https://jotley.ai/help",
      "permanent": false
    },
    {
      "source": "/:path*",
      "has": [
        {
          "type": "host",
          "value": "www.jotley.ai"
        }
      ],
      "destination": "https://jotley.ai/:path*",
      "permanent": true
    },
    {
      "source": "/downloads",
      "destination": "/download",
      "permanent": true
    },
    {
      "source": "/downloads/:file",
      "destination": "/:file",
      "permanent": false
    },
    {
      "source": "/:path*",
      "has": [
        {
          "type": "host",
          "value": "beta.jotley.ai"
        }
      ],
      "destination": "https://jotley.ai/:path*",
      "permanent": true
    },
    {
      "source": "/:path(tips|donate)",
      "destination": "/",
      "permanent": true
    },
    {
      "source": "/waitlist",
      "destination": "/",
      "permanent": true
    },
    {
      "source": "/beta",
      "destination": "/",
      "permanent": true
    },
    {
      "source": "/media/:dir(films|clips)/:file([A-Za-z0-9._-]+\\.mp4)",
      "destination": "https://media.jotley.ai/:dir/:file",
      "permanent": true
    },
    {
      "source": "/:file(Jotley-[A-Za-z0-9._-]+\\.dmg)",
      "destination": "https://media.jotley.ai/downloads/:file",
      "permanent": true
    },
    {
      "source": "/pay-and-pricing",
      "destination": "/",
      "permanent": true
    }
  ],
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        {
          "key": "Cache-Control",
          "value": "no-cache, no-store, must-revalidate"
        }
      ]
    },
    {
      "source": "/media/films/(.*)",
      "headers": [
        {
          "key": "Cache-Control",
          "value": "public, max-age=31536000, immutable"
        }
      ]
    },
    {
      "source": "/media/(clips|shots)/(.*)",
      "headers": [
        {
          "key": "Cache-Control",
          "value": "public, max-age=86400, stale-while-revalidate=604800"
        }
      ]
    }
  ]
}
