Skip to content

Commit

Permalink
fix: config and resolve build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabhag8848 committed Aug 8, 2024
1 parent be35d93 commit 05d8002
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/revert-next/app/dashboard/(overview)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { currentUser } from '@clerk/nextjs/server';
import { Header } from '@revertdotdev/components';
import Dashboard from '@revertdotdev/pages/Dashboard';
import Dashboard from './Dashboard';

export default async function Page() {
const user = await currentUser();
Expand Down
10 changes: 8 additions & 2 deletions packages/revert-next/components/ui/dashboard/ApiRequestChart.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
'use client';

import { AnalyticsSchema } from '@revertdotdev/types/schemas/analyticsSchema';
import { AreaChart } from '@tremor/react';

const valueFormatter = function (number: number) {
return new Intl.NumberFormat('us').format(number).toString();
};

export function ApiRequestChart({ value }) {
type ApiRequestChartProps = {
value: {
summaryApiCalls: AnalyticsSchema['result']['summaryApiCalls'];
};
};
export function ApiRequestChart({ value }: ApiRequestChartProps) {
const summaryApiCalls = value?.summaryApiCalls;

return (
Expand All @@ -29,4 +35,4 @@ export function ApiRequestChart({ value }) {
/>
</div>
);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cn } from "@revertdotdev/utils";
import { cn } from '@revertdotdev/utils';

//Todo: later configure shimmer
const shimmer =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export function DashboardSkeleton() {
</div>
</>
);
}
}
1 change: 0 additions & 1 deletion packages/revert-next/lib/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use server';

import { cookies } from 'next/headers';
import { DEFAULT_ENV } from './constants';
import { revalidatePath } from 'next/cache';
Expand Down
5 changes: 0 additions & 5 deletions packages/revert-next/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@ export default clerkMiddleware((auth, request) => {
auth().protect();
}
});

// Todo: configure the private routes
export const config = {
matcher: ['/((?!.*\\..*|_next).*)', '/dashboard', '/oauth-callback/clickup'],
};
4 changes: 4 additions & 0 deletions packages/revert-next/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config) => {
return config;
},

async redirects() {
return [
{
Expand Down

0 comments on commit 05d8002

Please sign in to comment.