-
Notifications
You must be signed in to change notification settings - Fork 5
/
next.config.js
45 lines (42 loc) · 969 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
37
38
39
40
41
42
43
44
45
// @ts-check
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
transpilePackages: ['uuid'],
output: 'standalone',
experimental: {
serverComponentsExternalPackages: [
'@lingui/core',
'@lingui/react',
'react-tab-controller',
'@material/icon-button',
'@reach/alert',
'@reach/alert-dialog',
'@reach/checkbox',
'@reach/dialog',
'@reach/listbox',
'@reach/menu-button',
'@reach/tabs',
'@reach/tooltip',
'@reach/visually-hidden',
],
swcPlugins: [['@lingui/swc-plugin', {}]],
},
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:5000/api/:path*',
},
]
},
webpack(config) {
config.module.rules.push({
test: /\.(graphql|gql)$/,
exclude: /node_modules/,
loader: 'graphql-tag/loader',
})
return config
},
}
module.exports = nextConfig