-
Notifications
You must be signed in to change notification settings - Fork 64
/
next.config.js
41 lines (40 loc) · 1020 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
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.js'
});
module.exports = withNextra({
env: {
ASSETS_DIRECTORY: process.env.NEXT_PUBLIC_CLOUDINARY_ASSETS_DIRECTORY || 'assets',
IMAGES_DIRECTORY: process.env.NEXT_PUBLIC_CLOUDINARY_IMAGES_DIRECTORY || 'images',
VIDEOS_DIRECTORY: process.env.NEXT_PUBLIC_CLOUDINARY_VIDEOS_DIRECTORY || 'videos'
},
async redirects() {
return [
{
source: '/nextjs-13',
destination: '/nextjs-14',
permanent: false,
},
{
source: '/components/:path(.*)',
destination: '/:path*',
permanent: false,
},
{
source: '/helpers/:path(.*)',
destination: '/:path*',
permanent: false,
},
{
source: '/use-cases/:path(.*)',
destination: '/guides/:path*',
permanent: false,
},
{
source: '/resources',
destination: '/',
permanent: false,
},
];
}
});