@@ -35,6 +35,7 @@ export default defineConfig({
35
35
enabled : false
36
36
} ,
37
37
redirects : {
38
+ "/sitemap.xml" : "/sitemap-0.xml" ,
38
39
"/developer-tools/kinde-api/register-manage-apis/" :
39
40
"/developer-tools/your-apis/register-manage-apis/" ,
40
41
"/developer-tools/kinde-api/protect-your-api/" :
@@ -60,7 +61,203 @@ export default defineConfig({
60
61
"/design/pages/set-language-for-pages/" :
61
62
"/design/content-customization/set-language-for-pages/" ,
62
63
"/design/pages/internationalization/" :
63
- "/design/content-customization/set-language-for-pages/"
64
+ "/design/content-customization/set-language-for-pages/" ,
65
+
66
+ // Section-level redirects to prevent 404s when users truncate URLs
67
+ "/authenticate/" :
68
+ "/authenticate/about-auth/about-authentication/" ,
69
+ "/billing/" :
70
+ "/billing/about-billing/about-billing/" ,
71
+ "/build/" :
72
+ "/build/applications/about-applications/" ,
73
+ "/design/" :
74
+ "/design/brand/global-brand-defaults/" ,
75
+ "/developer-tools/" :
76
+ "/developer-tools/about/our-sdks/" ,
77
+ "/get-started/" :
78
+ "/get-started/apis-and-sdks/about-kinde-apis/" ,
79
+ "/integrate/" :
80
+ "/integrate/connected-apps/add-connected-apps/" ,
81
+ "/machine-to-machine-applications/" :
82
+ "/machine-to-machine-applications/about-m2m/authenticate-with-m2m/" ,
83
+ "/manage-your-account/" :
84
+ "/manage-your-account/business-information/update-your-details/" ,
85
+ "/manage-users/" :
86
+ "/manage-users/about/manage-users-across-organizations/" ,
87
+ "/properties/" :
88
+ "/properties/about-properties/application-properties/" ,
89
+ "/releases/" :
90
+ "/releases/about/about-feature-flags/" ,
91
+ "/trust-center/" :
92
+ "/trust-center/agreements/terms-of-service/" ,
93
+ "/workflows/" :
94
+ "/workflows/about-workflows/" ,
95
+
96
+ // Authenticate section subfolder redirects
97
+ "/authenticate/about-auth/" :
98
+ "/authenticate/about-auth/about-authentication/" ,
99
+ "/authenticate/auth-guides/" :
100
+ "/authenticate/auth-guides/enterprise-connections-identity/" ,
101
+ "/authenticate/authentication-methods/" :
102
+ "/authenticate/authentication-methods/email-authentication/" ,
103
+ "/authenticate/custom-configurations/" :
104
+ "/authenticate/custom-configurations/authentication-experience/" ,
105
+ "/authenticate/enterprise-connections/" :
106
+ "/authenticate/enterprise-connections/about-enterprise-connections/" ,
107
+ "/authenticate/manage-authentication/" :
108
+ "/authenticate/manage-authentication/authenticated-sessions-across-multiple-applications/" ,
109
+ "/authenticate/multi-factor-auth/" :
110
+ "/authenticate/multi-factor-auth/about-multi-factor-authentication/" ,
111
+ "/authenticate/social-sign-in/" :
112
+ "/authenticate/social-sign-in/add-social-sign-in/" ,
113
+
114
+ // Billing section subfolder redirects
115
+ "/billing/about-billing/" :
116
+ "/billing/about-billing/about-billing/" ,
117
+ "/billing/billing-user-experience/" :
118
+ "/billing/billing-user-experience/add-pricing-table/" ,
119
+ "/billing/get-started/" :
120
+ "/billing/get-started/add-billing-role/" ,
121
+ "/billing/manage-plans/" :
122
+ "/billing/manage-plans/about-plans/" ,
123
+ "/billing/manage-subscribers/" :
124
+ "/billing/manage-subscribers/add-metered-usage/" ,
125
+ "/billing/payment-management/" :
126
+ "/billing/payment-management/manage-stripe-connection/" ,
127
+ "/billing/pricing/" :
128
+ "/billing/pricing/pricing-models/" ,
129
+
130
+ // Build section subfolder redirects
131
+ "/build/applications/" :
132
+ "/build/applications/about-applications/" ,
133
+ "/build/domains/" :
134
+ "/build/domains/pointing-your-domain/" ,
135
+ "/build/env-variables/" :
136
+ "/build/env-variables/add-manage-env-variables/" ,
137
+ "/build/environments/" :
138
+ "/build/environments/environments/" ,
139
+ "/build/organizations/" :
140
+ "/build/organizations/add-and-manage-organizations/" ,
141
+ "/build/set-up-options/" :
142
+ "/build/set-up-options/access-policies/" ,
143
+ "/build/tokens/" :
144
+ "/build/tokens/about-access-tokens/" ,
145
+
146
+ // Design section subfolder redirects
147
+ "/design/brand/" :
148
+ "/design/brand/global-brand-defaults/" ,
149
+ "/design/content-customization/" :
150
+ "/design/content-customization/how-content-is-managed/" ,
151
+ "/design/customize-with-code/" :
152
+ "/design/customize-with-code/connect-repo/" ,
153
+ "/design/pages/" :
154
+ "/design/pages/page-layout/" ,
155
+
156
+ // Developer tools section subfolder redirects
157
+ "/developer-tools/about/" :
158
+ "/developer-tools/about/our-sdks/" ,
159
+ "/developer-tools/account-api/" :
160
+ "/developer-tools/account-api/about-account-api/" ,
161
+ "/developer-tools/guides/" :
162
+ "/developer-tools/guides/code-sync-errors/" ,
163
+ "/developer-tools/kinde-api/" :
164
+ "/developer-tools/kinde-api/about-m2m-scopes/" ,
165
+ "/developer-tools/sdks/backend/" :
166
+ "/developer-tools/sdks/backend/apollo-graphql/" ,
167
+ "/developer-tools/sdks/frontend/" :
168
+ "/developer-tools/sdks/frontend/javascript-sdk/" ,
169
+ "/developer-tools/sdks/native/" :
170
+ "/developer-tools/sdks/native/android-sdk/" ,
171
+ "/developer-tools/your-apis/" :
172
+ "/developer-tools/your-apis/access-to-your-api/" ,
173
+
174
+ // Get started section subfolder redirects
175
+ "/get-started/apis-and-sdks/" :
176
+ "/get-started/apis-and-sdks/about-kinde-apis/" ,
177
+ "/get-started/connect/" :
178
+ "/get-started/connect/callback-urls/" ,
179
+ "/get-started/guides/" :
180
+ "/get-started/guides/byo-code/" ,
181
+ "/get-started/learn-about-kinde/" :
182
+ "/get-started/learn-about-kinde/kinde-product-security/" ,
183
+ "/get-started/switch-to-kinde/" :
184
+ "/get-started/switch-to-kinde/auth0-to-kinde/" ,
185
+ "/get-started/team-and-account/" :
186
+ "/get-started/team-and-account/add-team-members/" ,
187
+
188
+ // Integrate section subfolder redirects
189
+ "/integrate/connected-apps/" :
190
+ "/integrate/connected-apps/add-connected-apps/" ,
191
+ "/integrate/third-party-tools/" :
192
+ "/integrate/third-party-tools/cloudflare-zero-trust/" ,
193
+ "/integrate/webhooks/" :
194
+ "/integrate/webhooks/about-webhooks/" ,
195
+
196
+ // Machine-to-machine applications section subfolder redirects
197
+ "/machine-to-machine-applications/m2m-application-setup/" :
198
+ "/machine-to-machine-applications/m2m-application-setup/add-feature-flags-to-m2m-applications/" ,
199
+ "/machine-to-machine-applications/m2m-token-customization/" :
200
+ "/machine-to-machine-applications/m2m-token-customization/customize-m2m-tokens/" ,
201
+ "/machine-to-machine-applications/m2m-workflow-automation/" :
202
+ "/machine-to-machine-applications/m2m-workflow-automation/m2m-workflow/" ,
203
+ "/machine-to-machine-applications/organization-scoped-m2m-apps/" :
204
+ "/machine-to-machine-applications/organization-scoped-m2m-apps/enforce-org-m2m-access-in-your-api/" ,
205
+ "/machine-to-machine-applications/troubleshooting-m2m/" :
206
+ "/machine-to-machine-applications/troubleshooting-m2m/troubleshoot-m2m-token-errors/" ,
207
+
208
+ // Manage your account section subfolder redirects
209
+ "/manage-your-account/business-information/" :
210
+ "/manage-your-account/business-information/change-your-business-time-zone/" ,
211
+ "/manage-your-account/profile-and-plan/" :
212
+ "/manage-your-account/profile-and-plan/change-kinde-plan/" ,
213
+ "/manage-your-account/your-data/" :
214
+ "/manage-your-account/your-data/check-your-mau/" ,
215
+
216
+ // Manage users section subfolder redirects
217
+ "/manage-users/access-control/" :
218
+ "/manage-users/access-control/accept-policies-signup/" ,
219
+ "/manage-users/add-and-edit/" :
220
+ "/manage-users/add-and-edit/add-and-edit-users/" ,
221
+ "/manage-users/roles-and-permissions/" :
222
+ "/manage-users/roles-and-permissions/apply-roles-and-permissions-to-users/" ,
223
+ "/manage-users/view-activity/" :
224
+ "/manage-users/view-activity/hotjar/" ,
225
+
226
+ // Properties section subfolder redirects
227
+ "/properties/work-with-properties/" :
228
+ "/properties/work-with-properties/manage-properties/" ,
229
+
230
+ // Releases section subfolder redirects
231
+ "/releases/about/" :
232
+ "/releases/about/about-feature-flags/" ,
233
+ "/releases/feature-flags/" :
234
+ "/releases/feature-flags/add-feature-flag/" ,
235
+ "/releases/guides/" :
236
+ "/releases/guides/guide-to-app-store-approvals/" ,
237
+
238
+ // Trust center section subfolder redirects
239
+ "/trust-center/agreements/" :
240
+ "/trust-center/agreements/end-user-licence-agreement/" ,
241
+ "/trust-center/kinde-performance/" :
242
+ "/trust-center/kinde-performance/service-status/" ,
243
+ "/trust-center/privacy-and-compliance/" :
244
+ "/trust-center/privacy-and-compliance/compliance/" ,
245
+ "/trust-center/security/" :
246
+ "/trust-center/security/security-at-kinde/" ,
247
+
248
+ // Workflows section subfolder redirects
249
+ "/workflows/bindings/" :
250
+ "/workflows/bindings/access-token-binding/" ,
251
+ "/workflows/configuration/" :
252
+ "/workflows/configuration/bindings/" ,
253
+ "/workflows/example-workflows/" :
254
+ "/workflows/example-workflows/existing-password-provided-workflow/" ,
255
+ "/workflows/getting-started/" :
256
+ "/workflows/getting-started/connect-repo-for-workflows/" ,
257
+ "/workflows/manage-workflows/" :
258
+ "/workflows/manage-workflows/create-workflow/" ,
259
+ "/workflows/observability/" :
260
+ "/workflows/observability/workflow-build-logs/" ,
64
261
} ,
65
262
markdown : {
66
263
rehypePlugins : [
@@ -120,7 +317,12 @@ export default defineConfig({
120
317
applyBaseStyles : false
121
318
} ) ,
122
319
icon ( ) ,
123
- sitemap ( ) ,
320
+ sitemap ( {
321
+ filter : ( page ) => ! page . includes ( '404' ) ,
322
+ customPages : [
323
+ 'https://docs.kinde.com/'
324
+ ]
325
+ } ) ,
124
326
AutoImport ( {
125
327
imports : [
126
328
"./src/components/SDKSelector.astro" ,
0 commit comments