Fetch properties
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import properties from '@/properties.json';
|
||||
import PropertyCard from '@/components/PropertyCard';
|
||||
import Property from '@/models/Property';
|
||||
import connectDB from '@/config/database';
|
||||
|
||||
const PropertiesPage = async () => {
|
||||
await connectDB();
|
||||
const properties = await Property.find({});
|
||||
|
||||
const PropertiesPage = () => {
|
||||
return (
|
||||
<section className='px-4 py-6'>
|
||||
<div className='container-xl lg:container m-auto px-4 py-6'>
|
||||
|
||||
Reference in New Issue
Block a user