-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathnext.config.js
62 lines (60 loc) · 1.55 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
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: '/',
destination: 'https://github.com/stackwiseai/stackwise',
permanent: true,
},
{
source: '/stack',
destination: '/stacks',
permanent: true,
},
// these are the old uuid-slugged links which were published
// these redirects keep the old links working and we can still use the new slugs
{
source: '/stacks/gbkm2sk',
destination: '/stacks/chat-with-openai-streaming',
permanent: true,
},
{
source: '/stacks/aekmwsk',
destination: '/stacks/elevenlabs-tts',
permanent: true,
},
{
source: '/stacks/fedcba5',
destination: '/stacks/get-image-description-openai',
permanent: true,
},
{
source: '/stacks/abc1234',
destination: '/stacks/use-openai-assistant',
permanent: true,
},
{
source: '/stacks/blkfsSK',
destination: '/stacks/create-ai-canvas',
permanent: true,
},
{
source: '/stacks/ayqflsq',
destination: '/stacks/chat-with-openai-streaming-helicone',
permanent: true,
},
{
source: '/stacks/e4w5wrc',
destination: '/stacks/stable-video-diffusion',
permanent: true,
},
{
source: '/stacks/f2w5orq',
destination: '/stacks/basic-gemini-vision',
permanent: true,
},
];
},
};
module.exports = nextConfig;