Raw
1 /** @type {import("types").Sidebar.Sidebar[]} */
2 export const sidebars = [
3 {
4 sidebar_id: "docs",
5 title: "Get Started",
6 items: [
7 {
8 type: "category",
9 title: "Getting Started",
10 children: [
11 {
12 type: "link",
13 path: "/learn",
14 title: "Introduction",
15 },
16 {
17 type: "link",
18 path: "/learn/installation",
19 title: "Installation",
20 children: [
21 {
22 type: "link",
23 path: "/learn/installation/docker",
24 title: "Install with Docker",
25 },
26 ],
27 },
28 {
29 type: "link",
30 title: "Architecture",
31 path: "/learn/introduction/architecture",
32 },
33 ],
34 },
35 {
36 type: "category",
37 title: "Agentic Development",
38 children: [
39 {
40 type: "link",
41 title: "Overview",
42 path: "/learn/introduction/build-with-llms-ai",
43 },
44 {
45 type: "link",
46 title: "Cloud CLI",
47 path: "/learn/introduction/build-with-llms-ai/cloud-cli",
48 },
49 {
50 type: "link",
51 title: "Manage Store with Agents",
52 path: "/learn/introduction/build-with-llms-ai/manage-store-with-agents",
53 },
54 {
55 type: "link",
56 title: "Docs MCP Server",
57 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server",
58 children: [
59 {
60 type: "link",
61 title: "Ask Medusa Questions",
62 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/ask-medusa-question",
63 description:
64 "Answer Medusa questions from the official documentation.",
65 },
66 {
67 type: "link",
68 title: "Migrate from Shopify",
69 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/migrate-from-shopify",
70 description:
71 "Migrate your store's data from Shopify to Medusa.",
72 },
73 {
74 type: "link",
75 title: "Migrate from WooCommerce",
76 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/migrate-from-woocommerce",
77 description:
78 "Migrate your store's data from WooCommerce to Medusa.",
79 },
80 {
81 type: "link",
82 title: "Migrate from Magento",
83 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/migrate-from-magento",
84 description:
85 "Migrate your store's data from Magento to Medusa.",
86 },
87 {
88 type: "link",
89 title: "Integrate Providers",
90 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/integrate-providers",
91 description:
92 "Build payment and fulfillment module providers for third-party services.",
93 },
94 {
95 type: "link",
96 title: "Extend Products",
97 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/extend-products",
98 description:
99 "Attach custom data and features to products, variants, and options.",
100 },
101 {
102 type: "link",
103 title: "Upgrade Medusa",
104 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/upgrade-instructions",
105 description:
106 "Upgrade a Medusa project to a newer version, breaking changes included.",
107 },
108 {
109 type: "link",
110 title: "Submit Feedback",
111 path: "/learn/introduction/build-with-llms-ai/docs-mcp-server/submit-feedback",
112 description:
113 "Send documentation, bug, and feedback to the Medusa team.",
114 },
115 ],
116 },
117 {
118 type: "link",
119 title: "Agentic Skills",
120 path: "/learn/introduction/build-with-llms-ai/agentic-skills",
121 },
122 {
123 type: "link",
124 title: "AI-Friendly Docs",
125 path: "/learn/introduction/build-with-llms-ai/ai-friendly-docs",
126 },
127 ],
128 },
129 {
130 type: "category",
131 title: "Customization Tutorial",
132 children: [
133 {
134 type: "link",
135 title: "Build Custom Features",
136 path: "/learn/customization/custom-features",
137 children: [
138 {
139 type: "link",
140 title: "Brand Module",
141 path: "/learn/customization/custom-features/module",
142 },
143 {
144 type: "link",
145 title: "Brand Workflow",
146 path: "/learn/customization/custom-features/workflow",
147 },
148 {
149 type: "link",
150 title: "Brand API Route",
151 path: "/learn/customization/custom-features/api-route",
152 },
153 ],
154 },
155 {
156 type: "link",
157 title: "Extend Features",
158 path: "/learn/customization/extend-features",
159 children: [
160 {
161 type: "link",
162 title: "Link Brands and Products",
163 path: "/learn/customization/extend-features/define-link",
164 },
165 {
166 type: "link",
167 title: "Extend Core Flow",
168 path: "/learn/customization/extend-features/extend-create-product",
169 },
170 {
171 type: "link",
172 title: "Query Linked Records",
173 path: "/learn/customization/extend-features/query-linked-records",
174 },
175 ],
176 },
177 {
178 type: "link",
179 title: "Customize Admin",
180 path: "/learn/customization/customize-admin",
181 children: [
182 {
183 type: "link",
184 title: "Add Widget",
185 path: "/learn/customization/customize-admin/widget",
186 },
187 {
188 type: "link",
189 title: "Add UI Route",
190 path: "/learn/customization/customize-admin/route",
191 },
192 ],
193 },
194 {
195 type: "link",
196 title: "Integrate Systems",
197 path: "/learn/customization/integrate-systems",
198 children: [
199 {
200 type: "link",
201 title: "CMS Module",
202 path: "/learn/customization/integrate-systems/service",
203 },
204 {
205 type: "link",
206 title: "Sync to CMS",
207 path: "/learn/customization/integrate-systems/handle-event",
208 },
209 {
210 type: "link",
211 title: "Schedule Syncing",
212 path: "/learn/customization/integrate-systems/schedule-task",
213 },
214 ],
215 },
216 {
217 type: "link",
218 title: "Re-Use Customizations",
219 path: "/learn/customization/reuse-customizations",
220 },
221 {
222 type: "link",
223 title: "Next Steps",
224 path: "/learn/customization/next-steps",
225 },
226 ],
227 },
228 {
229 type: "category",
230 title: "Framework",
231 children: [
232 {
233 type: "link",
234 path: "/learn/fundamentals/framework",
235 title: "Overview",
236 },
237 {
238 type: "link",
239 path: "/learn/fundamentals/medusa-container",
240 title: "Medusa Container",
241 },
242 {
243 type: "link",
244 path: "/learn/fundamentals/modules",
245 title: "Modules",
246 children: [
247 {
248 type: "link",
249 path: "/learn/fundamentals/modules/modules-directory-structure",
250 title: "Directory Structure",
251 },
252 {
253 type: "link",
254 path: "/learn/fundamentals/modules/loaders",
255 title: "Loaders",
256 },
257 {
258 type: "link",
259 path: "/learn/fundamentals/modules/isolation",
260 title: "Module Isolation",
261 },
262 {
263 type: "link",
264 path: "/learn/fundamentals/modules/container",
265 title: "Module Container",
266 },
267 {
268 type: "link",
269 path: "/learn/fundamentals/modules/options",
270 title: "Module Options",
271 },
272 {
273 type: "link",
274 path: "/learn/fundamentals/modules/service-factory",
275 title: "Service Factory",
276 },
277 {
278 type: "link",
279 path: "/learn/fundamentals/modules/service-constraints",
280 title: "Service Constraints",
281 },
282 {
283 type: "link",
284 path: "/learn/fundamentals/modules/db-operations",
285 title: "Database Operations",
286 },
287 {
288 type: "link",
289 path: "/learn/fundamentals/modules/multiple-services",
290 title: "Multiple Services",
291 },
292 {
293 type: "link",
294 path: "/learn/fundamentals/modules/commerce-modules",
295 title: "Commerce Modules",
296 },
297 {
298 type: "link",
299 path: "/learn/fundamentals/modules/infrastructure-modules",
300 title: "Infrastructure Modules",
301 },
302 ],
303 },
304 {
305 type: "link",
306 path: "/learn/fundamentals/module-links",
307 title: "Module Links",
308 children: [
309 {
310 type: "link",
311 path: "/learn/fundamentals/module-links/directions",
312 title: "Module Link Direction",
313 },
314 {
315 type: "link",
316 path: "/learn/fundamentals/module-links/link",
317 title: "Link",
318 },
319 {
320 type: "link",
321 path: "/learn/fundamentals/module-links/custom-columns",
322 title: "Add Custom Columns",
323 },
324 {
325 type: "link",
326 path: "/learn/fundamentals/module-links/read-only",
327 title: "Read-Only Links",
328 },
329 ],
330 },
331 {
332 type: "link",
333 path: "/learn/fundamentals/query",
334 title: "Query",
335 children: [
336 {
337 type: "link",
338 path: "/learn/fundamentals/query/index-module",
339 title: "Index Module",
340 },
341 {
342 type: "link",
343 path: "/learn/fundamentals/query/search",
344 title: "Search Queries",
345 },
346 {
347 type: "link",
348 path: "/learn/fundamentals/query/query-context",
349 title: "Query Context",
350 },
351 ],
352 },
353 {
354 type: "link",
355 path: "/learn/fundamentals/data-models",
356 title: "Data Models",
357 children: [
358 {
359 type: "link",
360 path: "/learn/fundamentals/data-models/infer-type",
361 title: "Infer Type",
362 },
363 {
364 type: "link",
365 path: "/learn/fundamentals/data-models/properties",
366 title: "Properties",
367 },
368 {
369 type: "link",
370 path: "/learn/fundamentals/data-models/json-properties",
371 title: "JSON Properties",
372 },
373 {
374 type: "link",
375 path: "/learn/fundamentals/data-models/big-numbers",
376 title: "Big Numbers",
377 },
378 {
379 type: "link",
380 path: "/learn/fundamentals/data-models/relationships",
381 title: "Relationships",
382 },
383 {
384 type: "link",
385 path: "/learn/fundamentals/data-models/manage-relationships",
386 title: "Manage Relationships",
387 },
388 {
389 type: "link",
390 path: "/learn/fundamentals/data-models/indexes",
391 title: "Define Index",
392 },
393 {
394 type: "link",
395 path: "/learn/fundamentals/data-models/check-constraints",
396 title: "Check Constraints",
397 },
398 {
399 type: "link",
400 path: "/learn/fundamentals/data-models/write-migration",
401 title: "Migrations",
402 },
403 ],
404 },
405 {
406 type: "link",
407 title: "API Routes",
408 path: "/learn/fundamentals/api-routes",
409 children: [
410 {
411 type: "link",
412 path: "/learn/fundamentals/api-routes/http-methods",
413 title: "HTTP Methods",
414 },
415 {
416 type: "link",
417 path: "/learn/fundamentals/api-routes/parameters",
418 title: "Parameters",
419 },
420 {
421 type: "link",
422 path: "/learn/fundamentals/api-routes/responses",
423 title: "Response",
424 },
425 {
426 type: "link",
427 path: "/learn/fundamentals/api-routes/middlewares",
428 title: "Middlewares",
429 },
430 {
431 type: "link",
432 path: "/learn/fundamentals/api-routes/parse-body",
433 title: "Body Parsing",
434 },
435 {
436 type: "link",
437 path: "/learn/fundamentals/api-routes/validation",
438 title: "Validation",
439 },
440 {
441 type: "link",
442 path: "/learn/fundamentals/api-routes/protected-routes",
443 title: "Protected Routes",
444 },
445 {
446 type: "link",
447 path: "/learn/fundamentals/api-routes/errors",
448 title: "Errors",
449 },
450 {
451 type: "link",
452 path: "/learn/fundamentals/api-routes/cors",
453 title: "Handling CORS",
454 },
455 {
456 type: "link",
457 path: "/learn/fundamentals/api-routes/additional-data",
458 title: "Pass Additional Data",
459 },
460 {
461 type: "link",
462 path: "/learn/fundamentals/api-routes/retrieve-custom-links",
463 title: "Retrieve Custom Links",
464 },
465 {
466 type: "link",
467 path: "/learn/fundamentals/api-routes/allowed-fields",
468 title: "Allowed Fields",
469 },
470 {
471 type: "link",
472 path: "/learn/fundamentals/api-routes/disallowed-fields",
473 title: "Disallowed Fields",
474 },
475 {
476 type: "link",
477 path: "/learn/fundamentals/api-routes/localization",
478 title: "Localization",
479 },
480 {
481 type: "link",
482 path: "/learn/fundamentals/api-routes/override",
483 title: "Override API Routes",
484 },
485 ],
486 },
487 {
488 type: "link",
489 path: "/learn/fundamentals/workflows",
490 title: "Workflows",
491 children: [
492 {
493 type: "link",
494 path: "/learn/fundamentals/workflows/constructor-constraints",
495 title: "Constructor Constraints",
496 },
497 {
498 type: "link",
499 path: "/learn/fundamentals/workflows/compensation-function",
500 title: "Compensation Function",
501 },
502 {
503 type: "link",
504 path: "/learn/fundamentals/workflows/variable-manipulation",
505 title: "Transform Data",
506 },
507 {
508 type: "link",
509 path: "/learn/fundamentals/workflows/conditions",
510 title: "When-Then Conditions",
511 },
512 {
513 type: "link",
514 path: "/learn/fundamentals/workflows/errors",
515 title: "Error Handling",
516 },
517 {
518 type: "link",
519 path: "/learn/fundamentals/workflows/workflow-hooks",
520 title: "Workflow Hooks",
521 },
522 {
523 type: "link",
524 path: "/learn/fundamentals/workflows/add-workflow-hook",
525 title: "Expose a Hook",
526 },
527 {
528 type: "link",
529 path: "/learn/fundamentals/workflows/retry-failed-steps",
530 title: "Retry Failed Steps",
531 },
532 {
533 type: "link",
534 path: "/learn/fundamentals/workflows/parallel-steps",
535 title: "Run Steps in Parallel",
536 },
537 {
538 type: "link",
539 path: "/learn/fundamentals/workflows/workflow-timeout",
540 title: "Workflow Timeout",
541 },
542 {
543 type: "link",
544 path: "/learn/fundamentals/workflows/store-executions",
545 title: "Store Workflow Executions",
546 },
547 {
548 type: "link",
549 path: "/learn/fundamentals/workflows/cancel-workflow",
550 title: "Cancel Workflow Execution",
551 },
552 {
553 type: "link",
554 path: "/learn/fundamentals/workflows/long-running-workflow",
555 title: "Long-Running Workflow",
556 },
557 {
558 type: "link",
559 path: "/learn/fundamentals/workflows/execute-another-workflow",
560 title: "Nested Workflows",
561 },
562 {
563 type: "link",
564 path: "/learn/fundamentals/workflows/multiple-step-usage",
565 title: "Multiple Step Usage",
566 },
567 {
568 type: "link",
569 path: "/learn/fundamentals/workflows/locks",
570 title: "Using Locks",
571 },
572 {
573 type: "ref",
574 path: "/learn/debugging-and-testing/debug-workflows",
575 title: "Debug Workflows",
576 },
577 ],
578 },
579 {
580 type: "link",
581 path: "/learn/fundamentals/events-and-subscribers",
582 title: "Events and Subscribers",
583 children: [
584 {
585 type: "link",
586 path: "/learn/fundamentals/events-and-subscribers/data-payload",
587 title: "Events Data Payload",
588 },
589 {
590 type: "link",
591 path: "/learn/fundamentals/events-and-subscribers/emit-event",
592 title: "Emit Event",
593 },
594 {
595 type: "link",
596 path: "/learn/fundamentals/events-and-subscribers/event-priority",
597 title: "Event Priority",
598 },
599 ],
600 },
601 {
602 type: "link",
603 path: "/learn/fundamentals/scheduled-jobs",
604 title: "Scheduled Jobs",
605 children: [
606 {
607 type: "link",
608 path: "/learn/fundamentals/scheduled-jobs/execution-number",
609 title: "Execution Number",
610 },
611 {
612 type: "link",
613 path: "/learn/fundamentals/scheduled-jobs/interval",
614 title: "Set Interval",
615 },
616 ],
617 },
618 {
619 type: "link",
620 path: "/learn/fundamentals/plugins",
621 title: "Plugins",
622 children: [
623 {
624 type: "link",
625 path: "/learn/fundamentals/plugins/create",
626 title: "Create Plugin",
627 },
628 ],
629 },
630 {
631 type: "link",
632 path: "/learn/fundamentals/custom-cli-scripts",
633 title: "Custom CLI Scripts",
634 children: [
635 {
636 type: "link",
637 path: "/learn/fundamentals/custom-cli-scripts/seed-data",
638 title: "Seed Data",
639 },
640 ],
641 },
642 {
643 type: "link",
644 path: "/learn/fundamentals/generated-types",
645 title: "Auto-Generated Types",
646 },
647 ],
648 },
649 {
650 type: "category",
651 title: "Admin Development",
652 children: [
653 {
654 type: "link",
655 path: "/learn/fundamentals/admin",
656 title: "Overview",
657 },
658 {
659 type: "link",
660 path: "/learn/fundamentals/admin/widgets",
661 title: "Admin Widgets",
662 },
663 {
664 type: "link",
665 path: "/learn/fundamentals/admin/custom-injection-zones",
666 title: "Custom Injection Zones",
667 },
668 {
669 type: "link",
670 path: "/learn/fundamentals/admin/ui-routes",
671 title: "Admin UI Routes",
672 },
673 {
674 type: "link",
675 path: "/learn/fundamentals/admin/environment-variables",
676 title: "Environment Variables",
677 },
678 {
679 type: "link",
680 path: "/learn/fundamentals/admin/routing",
681 title: "Routing Customizations",
682 },
683 {
684 type: "link",
685 path: "/learn/fundamentals/admin/translations",
686 title: "Translations",
687 },
688 {
689 type: "link",
690 path: "/learn/fundamentals/admin/constraints",
691 title: "Constraints",
692 },
693 {
694 type: "link",
695 path: "/learn/fundamentals/admin/tips",
696 title: "Tips",
697 },
698 ],
699 },
700 {
701 type: "link",
702 path: "/learn/storefront-development",
703 title: "Storefront Development",
704 chapterTitle: "Storefront",
705 },
706 {
707 type: "category",
708 title: "Configurations",
709 children: [
710 {
711 type: "link",
712 title: "pnpm",
713 path: "/learn/configurations/pnpm",
714 },
715 {
716 type: "link",
717 title: "Environment Variables",
718 path: "/learn/fundamentals/environment-variables",
719 },
720 {
721 type: "link",
722 title: "Medusa Configuations",
723 path: "/learn/configurations/medusa-config",
724 children: [
725 {
726 type: "link",
727 title: "Asymmetric Encryption",
728 path: "/learn/configurations/medusa-config/asymmetric-encryption",
729 },
730 ],
731 },
732 {
733 type: "link",
734 title: "Type Aliases",
735 path: "/learn/configurations/ts-aliases",
736 },
737 ],
738 },
739 {
740 type: "category",
741 title: "Debugging & Testing",
742 children: [
743 {
744 type: "link",
745 path: "/learn/debugging-and-testing/testing-tools",
746 title: "Testing Tools",
747 },
748 {
749 type: "link",
750 path: "/learn/debugging-and-testing/testing-tools/integration-tests",
751 title: "Integration Tests",
752 children: [
753 {
754 type: "link",
755 path: "/learn/debugging-and-testing/testing-tools/integration-tests/api-routes",
756 title: "Example: API Routes Tests",
757 },
758 {
759 type: "link",
760 path: "/learn/debugging-and-testing/testing-tools/integration-tests/workflows",
761 title: "Example: Workflows Tests",
762 },
763 ],
764 },
765 {
766 type: "link",
767 path: "/learn/debugging-and-testing/testing-tools/modules-tests",
768 title: "Modules Tests",
769 },
770 {
771 type: "link",
772 path: "/learn/debugging-and-testing/debug-workflows",
773 title: "Debug Workflows",
774 },
775 {
776 type: "link",
777 path: "/learn/debugging-and-testing/instrumentation",
778 title: "Instrumentation",
779 children: [
780 {
781 type: "ref",
782 path: "/resources/integrations/guides/sentry",
783 title: "Guide: Sentry",
784 },
785 ],
786 },
787 {
788 type: "link",
789 path: "/learn/debugging-and-testing/logging",
790 title: "Logging",
791 children: [
792 {
793 type: "link",
794 path: "/learn/debugging-and-testing/logging/custom-logger",
795 title: "Override Logger",
796 },
797 ],
798 },
799 {
800 type: "link",
801 path: "/learn/debugging-and-testing/feature-flags",
802 title: "Feature Flags",
803 children: [
804 {
805 type: "link",
806 path: "/learn/debugging-and-testing/feature-flags/create",
807 title: "Create Feature Flag",
808 },
809 ],
810 },
811 ],
812 },
813 {
814 type: "category",
815 title: "Best Practices",
816 children: [
817 {
818 type: "link",
819 path: "/learn/best-practices/third-party-sync",
820 title: "Third-Party Syncing",
821 },
822 {
823 type: "ref",
824 path: "/learn/fundamentals/scheduled-jobs/interval",
825 title: "Scheduled Job Intervals",
826 },
827 ],
828 },
829 {
830 type: "category",
831 title: "Production",
832 children: [
833 {
834 type: "link",
835 path: "/learn/build",
836 title: "Build",
837 },
838 {
839 type: "link",
840 path: "/learn/production/worker-mode",
841 title: "Worker Modes",
842 },
843 {
844 type: "link",
845 path: "/learn/deployment",
846 title: "Deployment Overview",
847 children: [
848 {
849 type: "link",
850 path: "/learn/deployment/general",
851 title: "General Deployment",
852 },
853 ],
854 },
855 ],
856 },
857 {
858 type: "category",
859 title: "Upgrade",
860 children: [
861 {
862 type: "link",
863 path: "/learn/update",
864 title: "Update Medusa",
865 },
866 {
867 type: "external",
868 path: "https://github.com/medusajs/medusa/releases",
869 title: "Release Notes",
870 },
871 {
872 type: "link",
873 path: "/learn/codemods",
874 title: "Codemods",
875 children: [
876 {
877 type: "link",
878 title: "Replace Imports (v2.11.0+)",
879 path: "/learn/codemods/replace-imports",
880 },
881 {
882 type: "link",
883 title: "Replace Zod Imports (v2.13.0+)",
884 path: "/learn/codemods/replace-zod-imports",
885 },
886 ],
887 },
888 {
889 type: "link",
890 title: "From v1 to v2",
891 path: "/learn/introduction/from-v1-to-v2",
892 },
893 ],
894 },
895 {
896 type: "category",
897 title: "Resources",
898 children: [
899 {
900 type: "sub-category",
901 title: "Contribution Guidelines",
902 children: [
903 {
904 type: "link",
905 path: "/learn/resources/contribution-guidelines/code",
906 title: "Code",
907 },
908 {
909 type: "link",
910 path: "/learn/resources/contribution-guidelines/docs",
911 title: "Docs",
912 },
913 {
914 type: "link",
915 path: "/learn/resources/contribution-guidelines/admin-translations",
916 title: "Admin Translations",
917 },
918 ],
919 },
920 {
921 type: "link",
922 path: "/learn/resources/usage",
923 title: "Usage",
924 },
925 ],
926 },
927 ],
928 },
929 ]