-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (30 loc) · 999 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
34
35
36
const path = require('path')
require('dotenv').config()
const withVideos = require('next-videos')
/** @type {import('next').NextConfig} */
const nextConfig = {
env:{
},
publicRuntimeConfig: {
},
webpack: (config, options) => {
config.resolve.alias['components'] = path.join(__dirname, 'components')
config.resolve.alias['public'] = path.join(__dirname, 'public')
config.resolve.alias['lib'] = path.join(__dirname, 'lib')
config.resolve.alias['contexts'] = path.join(__dirname, 'contexts')
config.resolve.alias['dictionaries'] = path.join(__dirname, 'dictionaries')
use: [
options.defaultLoaders.babel,
{
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', { targets: "defaults" }]
]
}
},
]
return config
},
};
module.exports = withVideos(nextConfig);