fix: revert to SELECT * in services query to fix build error
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user