forked from nhost/nhost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
80 lines (79 loc) · 2.27 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
const path = require('path');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const { version } = require('./package.json');
module.exports = withBundleAnalyzer({
reactStrictMode: true,
swcMinify: false,
output: 'standalone',
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
},
publicRuntimeConfig: {
version,
},
eslint: {
dirs: ['src'],
},
async redirects() {
return [
{
source: '/login',
destination: '/signin',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/database/backups',
destination: '/:workspaceSlug/:appSlug/backups',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/database/hasura',
destination: '/:workspaceSlug/:appSlug/hasura',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/files',
destination: '/:workspaceSlug/:appSlug/storage',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/database/browser',
destination: '/:workspaceSlug/:appSlug/database/browser/default',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/users/logins',
destination: '/:workspaceSlug/:appSlug/settings/sign-in-methods',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/users/logins/:providerId',
destination:
'/:workspaceSlug/:appSlug/settings/sign-in-methods/:providerId',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/users/smtp-settings',
destination: '/:workspaceSlug/:appSlug/settings/smtp',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/users/roles',
destination: '/:workspaceSlug/:appSlug/settings/roles-and-permissions',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/variables',
destination: '/:workspaceSlug/:appSlug/settings/environment-variables',
permanent: true,
},
{
source: '/:workspaceSlug/:appSlug/users/:userId',
destination: '/:workspaceSlug/:appSlug/users?userId=:userId',
permanent: true,
},
];
},
});