fix: revert to SELECT * in services query to fix build error

This commit is contained in:
AyrisAI
2026-05-16 01:23:28 +03:00
parent 312ee20320
commit 36e98a3883

View File

@@ -19,9 +19,9 @@ export async function generateMetadata(): Promise<Metadata> {
export default async function ServicesPage() { export default async function ServicesPage() {
const [services, locations] = await Promise.all([ const [services, locations] = await Promise.all([
// Vercel Best Practice: server-serialization - Select only required fields // Reverting to SELECT * to fix build error while investigating missing columns
sql`SELECT id, title, description, slug, icon_name, sub_services FROM services ORDER BY display_order ASC`, sql`SELECT * FROM services ORDER BY display_order ASC`,
sql`SELECT id, name, slug FROM locations ORDER BY display_order ASC` sql`SELECT * FROM locations ORDER BY display_order ASC`
]); ]);
const servicesSchema = { const servicesSchema = {