3
Questions
6
Answers
1
Gold Badges
2
Silver Badges
2
Bronze Badges
I'm building a dashboard layout. On desktop I want a fixed left sidebar (250px), on mobile it should slide in/out as a drawer.
I've tried using hidden and flex breakpoint utilities but can't get the transition to work smoothly. Is there a standard Tailwind pattern for this?
Priya Nair
asked 1 months ago2
Answers23
Upvotes3422
ViewsI have two collections: orders and customers. I want to fetch all orders along with the customer's name and email.
// orders: { _id, customerId, total, status }
// customers: { _id, name, email }
I tried $lookup but it's killing performance on large datasets (~2M orders). Should I be using indexes differently, or is there a better aggregation strategy?
Priya Nair
asked 2 months ago1
Answers51
Upvotes5670
ViewsI'm using .env files with dotenv but I'm not sure about best practices for managing different environments. My concerns:
.env.development, .env.staging, .env.production?Priya Nair
asked 2 months ago1
Answers38
Upvotes5501
Views1