Skip to content

Commit 764cf5a

Browse files
committed
fix: base url + env template
1 parent 7d5d425 commit 764cf5a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.env.template

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Your Medusa backend, should be updated to where you are hosting your server. Remember to update CORS settings for your server. See – https://docs.medusajs.com/usage/configurations#storefront-cors
22
NEXT_PUBLIC_MEDUSA_BACKEND_URL=http://localhost:9000
33

4+
# Your store URL, should be updated to where you are hosting your storefront.
5+
NEXT_PUBLIC_BASE_URL=http://localhost:8000
6+
7+
# 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
9+
410
# Your Stripe public key. See – https://docs.medusajs.com/add-plugins/stripe
511
NEXT_PUBLIC_STRIPE_KEY=
612

@@ -11,4 +17,4 @@ NEXT_PUBLIC_PAYPAL_CLIENT_ID=
1117
NEXT_PUBLIC_SEARCH_APP_ID=
1218
NEXT_PUBLIC_SEARCH_ENDPOINT=http://127.0.0.1:7700
1319
NEXT_PUBLIC_SEARCH_API_KEY=
14-
NEXT_PUBLIC_SEARCH_INDEX_NAME=products
20+
NEXT_PUBLIC_SEARCH_INDEX_NAME=products

src/app/collections/[handle]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type Props = {
55
params: { handle: string }
66
}
77

8-
const BASEURL = process.env.NEXT_PUBLIC_BASE_URL ?? "http://localhost:3000"
8+
const BASEURL = process.env.NEXT_PUBLIC_BASE_URL ?? "http://localhost:8000"
99

1010
async function getCollection(handle: string) {
1111
const res = await fetch(`${BASEURL}/collections?handle=${handle}`)

0 commit comments

Comments
 (0)