-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.ts
90 lines (83 loc) · 1.81 KB
/
next.config.ts
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
86
87
88
89
90
import { fileURLToPath } from 'node:url';
import createJiti from 'jiti';
import createMDX from '@next/mdx';
import { NextConfig } from 'next';
const jiti = createJiti(fileURLToPath(import.meta.url));
jiti('./src/env.ts');
/** @type {import('next').NextConfig} */
const nextConfig: NextConfig = {
reactStrictMode: true,
experimental: {
reactCompiler: true,
after: true,
staleTimes: {
dynamic: 30,
},
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
},
{
protocol: 'https',
hostname: 'media.licdn.com',
},
],
},
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
async redirects() {
return [
{
source: '/facebook',
destination: 'https://www.facebook.com/meetjspl',
permanent: true,
},
{
source: '/instagram-bialystok',
destination: 'https://www.instagram.com/meet.js_bialystok',
permanent: true,
},
{
source: '/instagram-poznan',
destination: 'https://www.instagram.com/meet.js_poznan',
permanent: true,
},
{
source: '/instagram-wroclaw',
destination: 'https://www.instagram.com/meetjs_wroclaw',
permanent: true,
},
{
source: '/linkedin',
destination: 'https://www.linkedin.com/company/meetjs',
permanent: true,
},
{
source: '/x',
destination: 'https://x.com/meetjs',
permanent: true,
},
{
source: '/discord',
destination: 'https://discord.gg/UycCSpRh6j',
permanent: true,
},
{
source: '/github',
destination: 'https://github.com/meetjspl',
permanent: true,
},
{
source: '/youtube',
destination: 'https://www.youtube.com/@meetjs',
permanent: true,
},
];
},
};
// https://github.com/vercel/next.js/issues/71819
const withMdx = createMDX({
});
export default withMdx(nextConfig);