-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
42 lines (37 loc) · 883 Bytes
/
next.config.mjs
File metadata and controls
42 lines (37 loc) · 883 Bytes
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
34
35
36
37
38
39
40
41
42
import path from 'path'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
API_HOST: process.env.API_HOST,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'polabo-contents.s3.ap-northeast-2.amazonaws.com',
},
{
protocol: 'https',
hostname: 'd3l8obr3u6wg96.cloudfront.net'
}
],
},
webpack: (config) => {
config.resolve.alias['@'] = path.resolve(__dirname, 'src')
config.resolve.alias['public'] = path.resolve(__dirname, 'public')
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
logging: {
fetches: {
fullUrl: true,
},
},
}
export default nextConfig