Skip to content

Commit

Permalink
perf: ⚡️ improving perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Loonz206 committed Sep 20, 2024
1 parent b089861 commit e47db4d
Show file tree
Hide file tree
Showing 7 changed files with 775 additions and 428 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.1
20.17.0
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const withImages = require("next-images");

module.exports = withImages({
swcMinify: true,
exclude: path.resolve(__dirname, "src/assets/svg"),
webpack(config, options) {
return config;
return { config, options };
},
});

module.exports = {
// put the domains where images will be placed
images: {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// remotePatterns: ["place-hold.it", "media.giphy.com", "images.unsplash.com"],
remotePatterns: [
{
Expand Down
Loading

0 comments on commit e47db4d

Please sign in to comment.