mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Compare commits
2 commits
bac3ab2c1a
...
a8e3b5efbc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8e3b5efbc | ||
|
|
8a13e2c70a |
3 changed files with 10 additions and 3 deletions
|
|
@ -155,6 +155,13 @@ if (trackerScriptName) {
|
|||
}
|
||||
}
|
||||
|
||||
if (cloudMode) {
|
||||
rewrites.push({
|
||||
source: '/script.js',
|
||||
destination: 'https://cloud.umami.is/script.js',
|
||||
});
|
||||
}
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
export default {
|
||||
reactStrictMode: false,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { getReports, createReport } from '@/queries/prisma';
|
|||
|
||||
export async function GET(request: Request) {
|
||||
const schema = z.object({
|
||||
websiteId: z.uuid().optional(),
|
||||
websiteId: z.uuid(),
|
||||
type: z.string().optional(),
|
||||
...pagingParams,
|
||||
});
|
||||
|
|
@ -26,7 +26,7 @@ export async function GET(request: Request) {
|
|||
search,
|
||||
};
|
||||
|
||||
if (websiteId && !(await canViewWebsite(auth, websiteId))) {
|
||||
if (!(await canViewWebsite(auth, websiteId))) {
|
||||
return unauthorized();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { SharePage } from './SharePage';
|
||||
|
||||
export default async function ({ params }: { params: Promise<{ shareId: string }> }) {
|
||||
export default async function ({ params }: { params: Promise<{ shareId: string[] }> }) {
|
||||
const { shareId } = await params;
|
||||
|
||||
return <SharePage shareId={shareId[0]} />;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue