-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
169 lines (161 loc) · 5.5 KB
/
next.config.ts
File metadata and controls
169 lines (161 loc) · 5.5 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
import nextra from 'nextra';
import { releaseNotesRedirects } from './src/content/release-notes/_redirects';
// Set up Nextra with its configuration
// Note: nextra includes remark-gfm by default, so no custom mdxOptions needed
const withNextra = nextra({
latex: true,
search: {
codeblocks: false,
},
contentDirBasePath: '/',
// To use standard HTML elements for your tables
// but have them styled with components provided by useMDXComponents()
// Refer to this: https://nextra.site/docs/advanced/table
whiteListTagsStyling: ['table', 'thead', 'tbody', 'tr', 'th', 'td'],
});
// Export the final Next.js config with Nextra included
export default withNextra({
poweredByHeader: process.env.NODE_ENV === 'development',
reactStrictMode: process.env.NODE_ENV === 'development',
// Exclude large public directories from serverless function bundles
// These are static assets served directly by CDN, not needed in serverless functions
// This fixes "A Serverless Function has exceeded the unzipped maximum size of 250 MB" error
outputFileTracingExcludes: {
'*': [
'./public/administrator-manual/**',
'./public/user-manual/**',
'./public/installation/**',
'./public/release-notes/**',
'./public/overview/**',
'./public/_pagefind/**',
],
},
i18n: {
locales: ['en', 'ko', 'ja'],
defaultLocale: 'en',
},
// Skip i18n for API routes
skipTrailingSlashRedirect: true,
async rewrites() {
return {
beforeFiles: [
// API 경로는 i18n 리다이렉트를 건너뛰도록 처리
{
source: '/api/:path*',
destination: '/api/:path*',
locale: false,
},
],
afterFiles: [],
fallback: [],
};
},
// Configure redirects for Previous Version Documentation
async redirects() {
// release-notes 리다이렉트: src/content/release-notes/_redirects.ts에서 관리
const releaseNotesRedirectRules = releaseNotesRedirects.flatMap(([oldPath, newPath]) => [
{
source: `/:locale(ko|en|ja)/release-notes/${oldPath}/:path*`,
destination: `/:locale/release-notes/${newPath}/:path*`,
permanent: true,
},
{
source: `/:locale(ko|en|ja)/release-notes/${oldPath}`,
destination: `/:locale/release-notes/${newPath}`,
permanent: true,
},
]);
return [
...releaseNotesRedirectRules,
// querypie-overview -> overview 경로 변경에 대한 redirect (2026-01-22)
{
source: '/:locale(ko|en|ja)/querypie-overview/:path*',
destination: '/:locale/overview/:path*',
permanent: true,
},
{
source: '/querypie-overview/:path*',
destination: '/overview/:path*',
permanent: true,
},
// Korean (ko) redirects
{
source: '/ko/querypie-manual/11.2.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/1291125198/',
permanent: true,
},
{
source: '/ko/querypie-manual/11.1.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/1171325037/',
permanent: true,
},
{
source: '/ko/querypie-manual/11.0.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/1071939590/',
permanent: true,
},
{
source: '/ko/querypie-manual/10.3.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/959545600/',
permanent: true,
},
{
source: '/ko/querypie-manual/10.2.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/736428087/',
permanent: true,
},
{
source: '/ko/querypie-manual/10.1.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/634519553/',
permanent: true,
},
{
source: '/ko/querypie-manual/10.0.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/579010917/',
permanent: true,
},
{
source: '/ko/querypie/9.20.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QS1/pages/524944097/',
permanent: true,
},
// English (en) redirects
{
source: '/en/querypie-manual/11.0.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/1129677677/',
permanent: true,
},
{
source: '/en/querypie-manual/10.3.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/968950182/',
permanent: true,
},
{
source: '/en/querypie-manual/10.2.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/736756862/',
permanent: true,
},
{
source: '/en/querypie-manual/10.1.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/633799987/',
permanent: true,
},
{
source: '/en/querypie-manual/10.0.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/580224801/',
permanent: true,
},
{
source: '/en/querypie/9.16.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QS1/pages/369951121/',
permanent: true,
},
// Japanese (ja) redirects
{
source: '/ja/querypie-manual/10.2.0/:path*',
destination: 'https://querypie.atlassian.net/wiki/spaces/QM/pages/834863167/',
permanent: true,
},
];
},
});