Last active
January 3, 2025 13:45
-
-
Save Mr-emeka/9c60cb4178975561d1643d1170a1096d to your computer and use it in GitHub Desktop.
Next.js 15 svg configuration with turbo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { NextConfig } from "next"; | |
| const nextConfig: NextConfig = { | |
| experimental: { | |
| turbo: { | |
| rules: { | |
| '*.svg': { | |
| loaders: ['@svgr/webpack'], | |
| as: '*.js', | |
| }, | |
| }, | |
| }, | |
| }, | |
| }; | |
| export default nextConfig; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment