You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The Medusa Next.js Starter is built with:
44
44
-[Medusa](https://medusajs.com/)
45
45
46
46
Features include:
47
-
- Full e-commerce support:
47
+
- Full ecommerce support:
48
48
- Product Detail Page
49
49
- Product Overview Page
50
50
- Search with Algolia
@@ -55,7 +55,7 @@ Features include:
55
55
- Order Details
56
56
- Next.js 13
57
57
- Full App Router support with [Dynamic Routes](https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes) and [Route Groups](https://nextjs.org/docs/app/building-your-application/routing/route-groups)
58
-
-[Product Module](https://docs.medusajs.com/modules/products/serverless-module) support (coming soon)
58
+
-[Product Module](https://docs.medusajs.com/modules/products/serverless-module) support
59
59
60
60
# Quickstart
61
61
@@ -98,6 +98,20 @@ Your site is now running at http://localhost:8000!
98
98
99
99
Edit `/pages/index.tsx` to see your site update in real-time!
100
100
101
+
# Product Module
102
+
103
+
This starter has full support for our new serverless [Product Module](https://docs.medusajs.com/modules/products/serverless-module) for retrieving and manipulating product data directly from a serverless function. This keeps your product logic close to the frontend, making it easy to customize or extend Medusa's core functionality from within your Next.js project.
104
+
105
+
By default, this starter uses the standard Medusa API for product and collection retrieval. To enable the Product Module, follow these steps:
106
+
107
+
1. Make sure the `PRODUCT_POSTGRES_URL` and `NEXT_PUBLIC_BASE_URL` environment variables are set properly.
108
+
2. In `store.config.json`, set the `productModule` feature flag to `true` and save the file.
109
+
3. Restart the dev server.
110
+
111
+
Done! All product and collection data should now be coming from the module. The Product Module routes are all in `src/app/api` for you to edit and play around with.
112
+
113
+
To opt out of using the module, simply set the feature flag to `false` and restart the server.
114
+
101
115
# Payment integrations
102
116
103
117
By default this starter supports the following payment integrations
0 commit comments