-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext.config.js
85 lines (80 loc) · 2.49 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['res.cloudinary.com'],
},
webpack(config) {
config.resolve.fallback = {
...config.resolve.fallback, // if you miss it, all the other options in fallback, specified
// by next.js will be dropped. Doesn't make much sense, but how it is
fs: false, // the solution
}
return config
},
async redirects() {
return [
{
source: '/playground',
destination: '/awell-orchestration/developer-tools/api/playground',
permanent: true,
},
{
source: '/awell-orchestration',
destination:
'/awell-orchestration/docs/getting-started/orchestration-introduction',
permanent: false,
},
{
source: '/awell-orchestration/developer-tools/playground',
destination: '/awell-orchestration/developer-tools/api/playground',
permanent: true,
},
{
source: '/awell-orchestration/developer-tools/schema',
destination: '/awell-orchestration/developer-tools/api/schema',
permanent: true,
},
{
source: '/awell-orchestration/developer-tools/webhook-builder',
destination:
'/awell-orchestration/developer-tools/webhooks/webhook-builder',
permanent: true,
},
{
source: '/awell-orchestration/developer-tools/e164-phone-validation',
destination:
'/awell-orchestration/developer-tools/api/e164-phone-validation',
permanent: true,
},
{
source:
'/awell-orchestration/docs/going-live/sandbox-to-production-migration-guide',
destination:
'/awell-orchestration/docs/going-live/sandbox-to-production-promotion-guide',
permanent: true,
},
{
source: '/request-migration',
destination: 'request-promotion',
permanent: true,
},
{
source: '/awell-orchestration/docs/activities/hosted-pathway',
destination:
'/awell-orchestration/docs/activities/awell-hosted-pages/hosted-pathway-guide',
permanent: true,
},
{
source: '/awell-extensions/beta',
destination: '/awell-extensions',
permanent: false,
},
]
},
}
module.exports = withBundleAnalyzer(nextConfig)