@@ -1,5 +1,7 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
/* config options here */
|
||||
// Оптимизация бандла
|
||||
experimental: {
|
||||
optimizePackageImports: [
|
||||
"lucide-react",
|
||||
@@ -19,12 +21,11 @@ const nextConfig = {
|
||||
"@radix-ui/react-tooltip",
|
||||
],
|
||||
},
|
||||
// Компрессия и оптимизация
|
||||
compress: true,
|
||||
// Оптимизация изображений
|
||||
images: {
|
||||
formats: ["image/avif", "image/webp"],
|
||||
remotePatterns: [
|
||||
{ protocol: "https", hostname: "images.unsplash.com" },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user