This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client } from "@upstash/qstash" | |
import { NextRequest } from "next/server" | |
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL | |
? `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}` | |
: "http://localhost:3000" | |
interface Step<I> { | |
create: <O>(action: (prevResult: Awaited<I>) => O) => Step<O> | |
finally: (action: (prevResult: Awaited<I>) => any) => any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Chart.tsx example | |
'use client' | |
import { AreaChart, Card, Title } from '@tremor/react' | |
const generateData = () => { | |
let dataset = [] | |
const dates = [ | |
'Jun 30', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// page.tsx | |
import PaginationControls from '@/components/PaginationControls' | |
import Image from 'next/image' | |
const data = [ | |
'entry 1', | |
'entry 2', | |
'entry 3', | |
'entry 4', |