forked from statelyai/xstate-viz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
37 lines (36 loc) · 881 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
const registryPublicUrl =
process.env.NEXT_PUBLIC_REGISTRY_PUBLIC_URL ||
`https://dev.stately.ai/registry`;
const landingPagePublicUrl = `https://landing-page-prod.stately.ai`;
/** @type import('next').NextConfig */
module.exports = {
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
/**
* This is checked on CI anyway, so we'll never
* deploy anything that has type errors
*/
ignoreBuildErrors: true,
},
basePath: `/viz`,
productionBrowserSourceMaps: true,
/**
* These rewrites are never used in production - only in development
*/
async rewrites() {
return [
{
source: `/registry/:match*`,
basePath: false,
destination: `${registryPublicUrl}/:match*`,
},
{
source: `/`,
destination: `${landingPagePublicUrl}`,
basePath: false,
},
];
},
};