Skip to content

Commit afd4870

Browse files
committed
fix: next config
1 parent 429ad1f commit afd4870

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

examples/next/next.config.js

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
const nextConfig = () => {
2-
/** @type {import('next/dist/server/config').NextConfig} */
3-
const config = {
4-
compress: true,
5-
images: {
6-
formats: ['image/avif', 'image/webp'],
7-
loader: 'imgix',
8-
path: 'https://ultraviolet.scaleway.com',
9-
},
10-
poweredByHeader: false,
11-
reactStrictMode: true,
12-
eslint: {
13-
ignoreDuringBuilds: true,
14-
},
15-
transpilePackages: ['react-syntax-highlighter'],
16-
}
17-
18-
return config
1+
const nextConfig = {
2+
compress: true,
3+
images: {
4+
formats: ['image/avif', 'image/webp'],
5+
loader: 'imgix',
6+
path: 'https://ultraviolet.scaleway.com',
7+
},
8+
poweredByHeader: false,
9+
reactStrictMode: true,
10+
eslint: {
11+
ignoreDuringBuilds: true,
12+
},
13+
transpilePackages: ['react-syntax-highlighter'],
1914
}
2015

21-
export default nextConfig()
16+
export default nextConfig

examples/next/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"private": true,
1111
"scripts": {
12-
"dev": "next dev",
13-
"build": "next build",
12+
"dev": "next dev --webpack",
13+
"build": "next build --webpack",
1414
"export": "next export",
1515
"start": "next start"
1616
},

0 commit comments

Comments
 (0)