Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(images): reduce images size #126

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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](../../public/images/banner.png '▬')

## 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: [750, 1050, 1400],
},
env: {
nextImageExportOptimizer_imageFolderPath: 'public/images',
nextImageExportOptimizer_exportFolderPath: 'out',
nextImageExportOptimizer_quality: 75,
nextImageExportOptimizer_storePicturesInWEBP: true,
nextImageExportOptimizer_generateAndUseBlurImages: true,
},
};

module.exports = nextConfig;
Loading