-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
33 lines (31 loc) · 886 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** @type {import('next').NextConfig} */
import path from 'path'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const nextConfig = {
reactStrictMode: true,
env: {
BASE_URL: process.env.LOCAL_URL,
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
poweredByHeader: false,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '/u/**',
},
],
},
experimental: {
//warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
// next/font not working due to SWC compiler disabled. Opted in. may cause errors?
forceSwcTransforms: true,
},
}
export default nextConfig