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() {
const [services, locations] = await Promise.all([
// Vercel Best Practice: server-serialization - Select only required fields
sql`SELECT id, title, description, slug, icon_name, sub_services FROM services ORDER BY display_order ASC`,
sql`SELECT id, name, slug FROM locations ORDER BY display_order ASC`
// Reverting to SELECT * to fix build error while investigating missing columns
sql`SELECT * FROM services ORDER BY display_order ASC`,
sql`SELECT * FROM locations ORDER BY display_order ASC`
]);
const servicesSchema = {