-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
38 lines (34 loc) · 944 Bytes
/
next.config.js
File metadata and controls
38 lines (34 loc) · 944 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
const path = require('path')
const webpack = require('webpack')
const { parsed: myEnv } = require('dotenv').config({
path: __dirname + '/.env'
})
module.exports = {
trailingSlash: true,
reactStrictMode: false,
experimental: {
styledComponents: true,
esmExternals: false,
jsconfigPaths: true // enables it for both jsconfig.json and tsconfig.json
},
webpack: config => {
config.resolve.alias = {
...config.resolve.alias,
apexcharts: path.resolve(__dirname, './node_modules/apexcharts-clevision')
}
config.plugins.push(new webpack.EnvironmentPlugin(myEnv))
return config
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://localhost:3001/api/:path*",
// destination: "https://cryptoblessing.app/api/:path*",
},
]
},
env: {
vultr_cdn_path: 'https://ewr1.vultrobjects.com/crypto-blessing/items/',
}
}