diff --git a/Dockerfile b/Dockerfile
index 712442c..5fa94c5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,10 @@ FROM node:20-alpine AS builder
WORKDIR /app
+# Accept build arguments
+ARG VITE_API_BASE_URL
+ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
+
# Install dependencies first (layer-cache friendly)
COPY package.json package-lock.json ./
RUN npm ci --frozen-lockfile
diff --git a/k8s/service.yaml b/k8s/service.yaml
index 8718130..43c89f8 100644
--- a/k8s/service.yaml
+++ b/k8s/service.yaml
@@ -13,4 +13,5 @@ spec:
protocol: TCP
port: 80
targetPort: 80
- type: ClusterIP
+ nodePort: 30081
+ type: NodePort
diff --git a/nginx.conf b/nginx.conf
index 97d889f..04cac65 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -14,6 +14,7 @@ server {
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|avif|webp|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
+ access_log off;
try_files $uri =404;
}
diff --git a/src/components/home/Category/CategoryCard.jsx b/src/components/home/Category/CategoryCard.jsx
index cee6c4b..aef7243 100644
--- a/src/components/home/Category/CategoryCard.jsx
+++ b/src/components/home/Category/CategoryCard.jsx
@@ -15,7 +15,7 @@ const CategoryCard = ({ category }) => {
{/* Image */}
diff --git a/src/components/home/MostLoved/MostLovedCard.jsx b/src/components/home/MostLoved/MostLovedCard.jsx
index 671c6ed..ff31a90 100644
--- a/src/components/home/MostLoved/MostLovedCard.jsx
+++ b/src/components/home/MostLoved/MostLovedCard.jsx
@@ -91,7 +91,7 @@ const MostLovedCard = ({ product }) => {
const image =
product?.images?.gallery?.[0] ||
product?.images?.primary ||
- "/placeholder-product.png";
+ "/default-product.png";
const hasOffer =
product?.compareAtPrice &&
diff --git a/src/components/home/NewGems/NewArrivalCard.jsx b/src/components/home/NewGems/NewArrivalCard.jsx
index 5cbbd45..d3093b4 100644
--- a/src/components/home/NewGems/NewArrivalCard.jsx
+++ b/src/components/home/NewGems/NewArrivalCard.jsx
@@ -102,7 +102,7 @@ const NewArrivalCard = ({ product }) => {
product?.variants?.[0]?.images?.[0] ||
product?.images?.gallery?.[0] ||
product?.images?.primary ||
- "/placeholder-product.png";
+ "/default-product.png";
const price = product?.variants?.[0]?.price || product?.basePrice;
diff --git a/src/components/home/RecommendedForYou/RecommendedForYou.jsx b/src/components/home/RecommendedForYou/RecommendedForYou.jsx
index b407386..e15dc7f 100644
--- a/src/components/home/RecommendedForYou/RecommendedForYou.jsx
+++ b/src/components/home/RecommendedForYou/RecommendedForYou.jsx
@@ -129,7 +129,7 @@ const RecommendedForYou = ({ limit = 10 }) => {
src={
product.images?.primary ||
product.images?.gallery?.[0] ||
- "/placeholder.jpg"
+ "/default-product.png"
}
alt={product.name}
className="w-full h-full object-cover
diff --git a/src/components/recentlyViewed/RecentlyViewed.jsx b/src/components/recentlyViewed/RecentlyViewed.jsx
index c4122d9..1f18672 100644
--- a/src/components/recentlyViewed/RecentlyViewed.jsx
+++ b/src/components/recentlyViewed/RecentlyViewed.jsx
@@ -109,7 +109,7 @@ const RecentlyViewedCard = ({ product, wishlistIds, handleWishlist }) => {
{/* Image */}