openstatusHQ / openstatus

🏓 The open-source synthetic monitoring platform 🏓
https://openstatus.dev
GNU Affero General Public License v3.0
6k stars 378 forks source link

Dynamic Import for Icons #941

Closed thibaultleouay closed 1 month ago

thibaultleouay commented 1 month ago

Reproduction / Replay Link (Optional)

No response

Description

We should import icon with dynamic import see : https://lucide.dev/guide/packages/lucide-react#with-dynamic-imports

Environment

No response

thibaultleouay commented 1 month ago

They are already optimizing it,

We dont need to it
https://nextjs.org/docs/app/api-reference/next-config-js/optimizePackageImports