Fix invoice PDF table style, my-customers page dynamic rendering, add Supabase client import, disable cacheComponents

Files changed: 6 (7 insertions, 9 deletions)
This commit is contained in:
DanielS
2026-06-22 21:08:20 +02:00
parent fb124b549c
commit ba24ee33e6
6 changed files with 7 additions and 9 deletions

View File

View File

View File

@@ -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<string, number> = {}
;(orderCounts ?? []).forEach(o => {

View File

@@ -31,7 +31,7 @@ const styles = StyleSheet.create({
marginBottom: 2,
},
table: {
display: 'table',
width: 'auto',
borderStyle: 'solid',
borderWidth: 1,

View File

@@ -1,7 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
cacheComponents: true,
cacheComponents: false,
};
export default nextConfig;

View File

@@ -1 +1 @@
v2.95.4
v2.107.0