diff --git a/.gitea/workflows/productive.yaml b/.gitea/workflows/productive.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/staging.yaml b/.gitea/workflows/staging.yaml new file mode 100644 index 0000000..e69de29 diff --git a/shop/app/my-customers/page.tsx b/shop/app/my-customers/page.tsx index 81af19f..a507b3d 100644 --- a/shop/app/my-customers/page.tsx +++ b/shop/app/my-customers/page.tsx @@ -1,11 +1,12 @@ -import { createClient } from '@/lib/supabase/server' +export const dynamic = 'force-dynamic'; import { redirect } from 'next/navigation' import Link from 'next/link' import { getEndCustomers } from '@/lib/actions/end-customers' import { ArrowLeft, Building2, Plus, Edit2, AlertTriangle } from 'lucide-react' import { Button } from '@/components/ui/button' import { Card, CardContent } from '@/components/ui/card' -import { Badge } from '@/components/ui/badge' +import { Badge } from '@/components/ui/badge'; +import { createClient } from '@/lib/supabase/server'; export default async function MyCustomersPage() { const supabase = await createClient() @@ -15,10 +16,7 @@ export default async function MyCustomersPage() { const customers = await getEndCustomers() // Anzahl Bestellungen pro Endkunde - const { data: orderCounts } = await supabase - .from('orders') - .select('end_customer_id') - .not('end_customer_id', 'is', null) + const { data: orderCounts } = await supabase.from('orders').select('end_customer_id').not('end_customer_id', 'is', null); const countMap: Record = {} ;(orderCounts ?? []).forEach(o => { diff --git a/shop/components/invoice-pdf.tsx b/shop/components/invoice-pdf.tsx index 5514cde..abb8143 100644 --- a/shop/components/invoice-pdf.tsx +++ b/shop/components/invoice-pdf.tsx @@ -31,7 +31,7 @@ const styles = StyleSheet.create({ marginBottom: 2, }, table: { - display: 'table', + width: 'auto', borderStyle: 'solid', borderWidth: 1, diff --git a/shop/next.config.ts b/shop/next.config.ts index 584cbfc..b5d0c50 100644 --- a/shop/next.config.ts +++ b/shop/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - cacheComponents: true, + cacheComponents: false, }; export default nextConfig; diff --git a/shop/supabase/.temp/cli-latest b/shop/supabase/.temp/cli-latest index 4deee8a..114c98e 100644 --- a/shop/supabase/.temp/cli-latest +++ b/shop/supabase/.temp/cli-latest @@ -1 +1 @@ -v2.95.4 \ No newline at end of file +v2.107.0 \ No newline at end of file