Checkpoint: v4.0 media service, compose deploy, and verified docs
这个提交包含在:
@@ -52,6 +52,17 @@ const trpcClient = trpc.createClient({
|
||||
],
|
||||
});
|
||||
|
||||
const analyticsEndpoint = import.meta.env.VITE_ANALYTICS_ENDPOINT;
|
||||
const analyticsWebsiteId = import.meta.env.VITE_ANALYTICS_WEBSITE_ID;
|
||||
|
||||
if (analyticsEndpoint && analyticsWebsiteId && typeof document !== "undefined") {
|
||||
const script = document.createElement("script");
|
||||
script.defer = true;
|
||||
script.src = `${analyticsEndpoint.replace(/\/$/, "")}/umami`;
|
||||
script.dataset.websiteId = analyticsWebsiteId;
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<trpc.Provider client={trpcClient} queryClient={queryClient}>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
|
||||
在新工单中引用
屏蔽一个用户