diff --git a/README.md b/README.md index 70576b8c..1adfbfb3 100644 --- a/README.md +++ b/README.md @@ -72,13 +72,13 @@ docker compose up Alternatively, to pull just the Umami Docker image with PostgreSQL support: ```bash -docker pull docker.umami.is/umami-software/umami:postgresql-latest +docker pull docker.umami.dev/umami-software/umami:postgresql-latest ``` Or with MySQL support: ```bash -docker pull docker.umami.is/umami-software/umami:mysql-latest +docker pull docker.umami.dev/umami-software/umami:mysql-latest ``` ## Getting updates diff --git a/lib/types.ts b/lib/types.ts index 007d6fdb..9dc01719 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -7,7 +7,9 @@ export interface Auth { role: string; isAdmin: boolean; }; - shareToken?: string; + shareToken?: { + websiteId: string; + }; } export interface NextApiRequestQueryBody extends NextApiRequest { diff --git a/pages/api/share/[id].ts b/pages/api/share/[id].ts index b8a37e25..b5511f2d 100644 --- a/pages/api/share/[id].ts +++ b/pages/api/share/[id].ts @@ -23,8 +23,7 @@ export default async ( const website = await getWebsite({ shareId }); if (website) { - const { id } = website; - const data = { id }; + const data = { websiteId: website.id }; const token = createToken(data, secret()); return ok(res, { ...data, token }); diff --git a/pages/api/websites/[id]/active.ts b/pages/api/websites/[id]/active.ts index 5f49c352..99c8d999 100644 --- a/pages/api/websites/[id]/active.ts +++ b/pages/api/websites/[id]/active.ts @@ -1,5 +1,4 @@ -import { WebsiteActive } from 'lib/types'; -import { NextApiRequestQueryBody } from 'lib/types'; +import { WebsiteActive, NextApiRequestQueryBody } from 'lib/types'; import { canViewWebsite } from 'lib/auth'; import { useAuth, useCors } from 'lib/middleware'; import { NextApiResponse } from 'next'; diff --git a/pages/share/[...id].js b/pages/share/[...id].js index 50955748..863fb3f7 100644 --- a/pages/share/[...id].js +++ b/pages/share/[...id].js @@ -15,7 +15,7 @@ export default function SharePage() { return ( - + ); } diff --git a/styles/index.css b/styles/index.css index 4159bb98..982523a3 100644 --- a/styles/index.css +++ b/styles/index.css @@ -69,6 +69,7 @@ a, a:active, a:visited { color: var(--primary400); + text-decoration: none; } main {