fix(public): fix problems with building #1
This commit is contained in:
@@ -7,7 +7,7 @@ import Script from 'next/script';
|
|||||||
export async function generateMetadata({
|
export async function generateMetadata({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
params: { pages: string[] };
|
params: Promise<{ pages: string[] }>;
|
||||||
}): Promise<Metadata> {
|
}): Promise<Metadata> {
|
||||||
const { pages } = await params;
|
const { pages } = await params;
|
||||||
const page = await pageSource.getPage(pages);
|
const page = await pageSource.getPage(pages);
|
||||||
@@ -41,7 +41,7 @@ export async function generateMetadata({
|
|||||||
export default async function Page({
|
export default async function Page({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
params: { pages: string[] };
|
params: Promise<{ pages: string[] }>;
|
||||||
}) {
|
}) {
|
||||||
const { pages } = await params;
|
const { pages } = await params;
|
||||||
const page = await pageSource.getPage(pages);
|
const page = await pageSource.getPage(pages);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import Script from 'next/script';
|
|||||||
export async function generateMetadata({
|
export async function generateMetadata({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
params: { articleSlug: string };
|
params: Promise<{ articleSlug: string }>;
|
||||||
}): Promise<Metadata> {
|
}): Promise<Metadata> {
|
||||||
const { articleSlug } = await params;
|
const { articleSlug } = await params;
|
||||||
const article = await articleSource.getPage([articleSlug]);
|
const article = await articleSource.getPage([articleSlug]);
|
||||||
@@ -55,7 +55,7 @@ export async function generateMetadata({
|
|||||||
export default async function Page({
|
export default async function Page({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
params: { articleSlug: string };
|
params: Promise<{ articleSlug: string }>;
|
||||||
}) {
|
}) {
|
||||||
const { articleSlug } = await params;
|
const { articleSlug } = await params;
|
||||||
const article = await articleSource.getPage([articleSlug]);
|
const article = await articleSource.getPage([articleSlug]);
|
||||||
|
|||||||
@@ -6,41 +6,49 @@ import * as React from 'react';
|
|||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip';
|
import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip';
|
||||||
|
|
||||||
const Slider = (
|
const Slider = ({
|
||||||
{
|
ref,
|
||||||
ref,
|
className,
|
||||||
className,
|
tooltip,
|
||||||
tooltip,
|
...props
|
||||||
...props
|
}: {
|
||||||
}
|
ref?: any;
|
||||||
) => (<SliderPrimitive.Root
|
className?: string;
|
||||||
ref={ref}
|
tooltip?: string;
|
||||||
className={cn(
|
value: number[];
|
||||||
'relative flex w-full touch-none select-none items-center',
|
max: number;
|
||||||
className,
|
step: number;
|
||||||
)}
|
onValueChange: (value: number[]) => void;
|
||||||
{...props}
|
}) => (
|
||||||
>
|
<SliderPrimitive.Root
|
||||||
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-white/10">
|
ref={ref}
|
||||||
<SliderPrimitive.Range className="absolute h-full bg-white/90" />
|
className={cn(
|
||||||
</SliderPrimitive.Track>
|
'relative flex w-full touch-none select-none items-center',
|
||||||
{tooltip ? (
|
className,
|
||||||
<Tooltip open disableHoverableContent>
|
)}
|
||||||
<TooltipTrigger asChild>
|
{...props}
|
||||||
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-white bg-black ring-offset-black transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
|
>
|
||||||
</TooltipTrigger>
|
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-white/10">
|
||||||
<TooltipContent
|
<SliderPrimitive.Range className="absolute h-full bg-white/90" />
|
||||||
side="top"
|
</SliderPrimitive.Track>
|
||||||
sideOffset={10}
|
{tooltip ? (
|
||||||
className="rounded-full bg-black text-white/70 py-1 text-xs border-white/30"
|
<Tooltip open disableHoverableContent>
|
||||||
>
|
<TooltipTrigger asChild>
|
||||||
{tooltip}
|
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-white bg-black ring-offset-black transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
|
||||||
</TooltipContent>
|
</TooltipTrigger>
|
||||||
</Tooltip>
|
<TooltipContent
|
||||||
) : (
|
side="top"
|
||||||
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-white bg-black ring-offset-black transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
|
sideOffset={10}
|
||||||
)}
|
className="rounded-full bg-black text-white/70 py-1 text-xs border-white/30"
|
||||||
</SliderPrimitive.Root>);
|
>
|
||||||
|
{tooltip}
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
|
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-white bg-black ring-offset-black transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
|
||||||
|
)}
|
||||||
|
</SliderPrimitive.Root>
|
||||||
|
);
|
||||||
Slider.displayName = SliderPrimitive.Root.displayName;
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
||||||
|
|
||||||
export { Slider };
|
export { Slider };
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ description: Our simple, usage-based pricing means you only pay for what you use
|
|||||||
import Pricing from '@/components/sections/pricing';
|
import Pricing from '@/components/sections/pricing';
|
||||||
import Stats from '@/components/sections/stats';
|
import Stats from '@/components/sections/stats';
|
||||||
import Testimonials from '@/components/sections/testimonials';
|
import Testimonials from '@/components/sections/testimonials';
|
||||||
import Faq from '@/components/sections/Faq';
|
import Faq from '@/components/sections/faq';
|
||||||
|
|
||||||
Experience transparent, usage-based pricing that grows with your needs. Simply choose your monthly event volume and pay accordingly - no surprises.
|
Experience transparent, usage-based pricing that grows with your needs. Simply choose your monthly event volume and pay accordingly - no surprises.
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const config = {
|
|||||||
'@openpanel/redis',
|
'@openpanel/redis',
|
||||||
'@openpanel/validation',
|
'@openpanel/validation',
|
||||||
],
|
],
|
||||||
serverExternalPackages: ['@hyperdx/node-opentelemetry'],
|
serverExternalPackages: ['@hyperdx/node-opentelemetry', 'ioredis', 'bullmq'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withMDX(config);
|
export default withMDX(config);
|
||||||
|
|||||||
Reference in New Issue
Block a user