Skip to content

Commit

Permalink
refactor(images): reduce images size
Browse files Browse the repository at this point in the history
fix #111
  • Loading branch information
AmnezziaCS committed Dec 13, 2022
1 parent 51b372c commit a393978
Show file tree
Hide file tree
Showing 24 changed files with 911 additions and 1,122 deletions.
2 changes: 2 additions & 0 deletions contents/conferences/chtijs-24.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ système de recherche universelle dans une app avec ElasticSearch et NodeJS.
**Talk de [Nicolas Froidure](https://insertafter.com/fr/a_propos.html) :**
Typage end to end avec TypeScript et OpenAPI.

![Pictured](https://img.freepik.com/free-vector/hand-painted-watercolor-pastel-sky-background_23-2148902771.jpg?w=2000 '')

## Pour info

Pour la liste des participants, voir
Expand Down
12 changes: 12 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ const nextConfig = {
// basePath: process.env.NODE_ENV === 'production' ? '' : '',
reactStrictMode: true,
swcMinify: true,
images: {
loader: 'custom',
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
},
env: {
nextImageExportOptimizer_imageFolderPath: 'public/images',
nextImageExportOptimizer_exportFolderPath: 'out',
nextImageExportOptimizer_quality: 75,
nextImageExportOptimizer_storePicturesInWEBP: true,
nextImageExportOptimizer_generateAndUseBlurImages: true,
},
};

module.exports = nextConfig;
Loading

0 comments on commit a393978

Please sign in to comment.