Skip to content

Commit df2a11c

Browse files
authored
Merge pull request #158 from medusajs/add-product-module
feat: add product module
2 parents 6d00eae + 17ce168 commit df2a11c

File tree

25 files changed

+965
-22848
lines changed

25 files changed

+965
-22848
lines changed

.env.template

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://localhost:9000
55
NEXT_PUBLIC_BASE_URL=http://localhost:8000
66

77
# Posgres URL for your Medusa DB for the Product Module. See - https://docs.medusajs.com/modules/products/serverless-module
8-
PRODUCT_POSTGRES_URL=postgres://postgres:postgres@localhost:5432/medusa-store
8+
PRODUCT_POSTGRES_URL=postgres://postgres:postgres@localhost:5432/medusa
99

1010
# Your Stripe public key. See – https://docs.medusajs.com/add-plugins/stripe
1111
NEXT_PUBLIC_STRIPE_KEY=
@@ -17,4 +17,7 @@ NEXT_PUBLIC_PAYPAL_CLIENT_ID=
1717
NEXT_PUBLIC_SEARCH_APP_ID=
1818
NEXT_PUBLIC_SEARCH_ENDPOINT=http://127.0.0.1:7700
1919
NEXT_PUBLIC_SEARCH_API_KEY=
20-
NEXT_PUBLIC_SEARCH_INDEX_NAME=products
20+
NEXT_PUBLIC_SEARCH_INDEX_NAME=products
21+
22+
# Your Next.js revalidation secret. See – https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#on-demand-revalidation
23+
REVALIDATE_SECRET=supersecret

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ node_modules
4545

4646
.yarn
4747
.swc
48+
dump.rdb

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const store = require("./store.config.json")
44
module.exports = withStoreConfig({
55
experimental: {
66
serverActions: true,
7+
serverComponentsExternalPackages: ["@medusajs/product"],
78
},
89
features: store.features,
910
reactStrictMode: true,

0 commit comments

Comments
 (0)