Skip to content

Commit

Permalink
feat: Add svgr
Browse files Browse the repository at this point in the history
  • Loading branch information
youngle316 committed Feb 24, 2023
1 parent dfa68b0 commit 8124dee
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
appDir: true,
appDir: true
},
}

module.exports = nextConfig
images: {
domains: ['lh3.googleusercontent.com']
},

webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack']
});

return config;
}
};

module.exports = nextConfig;

0 comments on commit 8124dee

Please sign in to comment.