Skip to content

Commit e77d513

Browse files
committed
fix: inline build-time env vars, support www subdomains, and fix recommendation service
1 parent b006efe commit e77d513

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

apps/admin-ui/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ WORKDIR /app
2727
COPY prisma/ ./prisma/
2828
RUN pnpm prisma generate
2929

30+
ENV NEXT_PUBLIC_SERVER_URI=https://shopnexnow.store
31+
ENV NEXT_PUBLIC_SOCKET_URI=wss://shopnexnow.store/ws-chatting
32+
ENV NEXT_PUBLIC_USER_UI_LINK=https://shopnexnow.store
3033
ENV NODE_ENV=production
3134
RUN pnpm nx build @eshop/admin-ui
3235

apps/seller-ui/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ WORKDIR /app
2727
COPY prisma/ ./prisma/
2828
RUN pnpm prisma generate
2929

30+
ENV NEXT_PUBLIC_SERVER_URI=https://shopnexnow.store/
31+
ENV NEXT_PUBLIC_USER_UI_LINK=https://shopnexnow.store
32+
ENV NEXT_PUBLIC_CHAATTING_WEBSOCKET_URI=wss://shopnexnow.store/ws-chatting
3033
ENV NODE_ENV=production
3134
RUN pnpm nx build @eshop/seller-ui
3235

apps/user-ui/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ WORKDIR /app
2727
COPY prisma/ ./prisma/
2828
RUN pnpm prisma generate
2929

30+
ENV NEXT_PUBLIC_SERVER_URI=https://shopnexnow.store
31+
ENV NEXT_PUBLIC_CHATTING_WEBSOCKET_URI=wss://shopnexnow.store/ws-chatting
32+
ENV NEXT_PUBLIC_SELLER_SERVER_URI=https://seller.shopnexnow.store
33+
ENV NEXT_PUBLIC_STRIPE_PUBLIC_KEY=pk_test_51PXzbSSGnmKVDMGjMqZWNz1dVlfYkrLFxKz8odWopqSVaZjh6HMA1ykIybHoDmGYbfC35RcmxpfCXDjhzmglqh3T00C3MjQgjL
3034
ENV NODE_ENV=production
3135
RUN pnpm nx build @eshop/user-ui
3236

nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ http {
8181
# ----------------------------------------------------
8282
server {
8383
listen 80;
84-
server_name shopnexnow.store www.shopnexnow.store seller.shopnexnow.store admin.shopnexnow.store;
84+
server_name shopnexnow.store www.shopnexnow.store seller.shopnexnow.store www.seller.shopnexnow.store admin.shopnexnow.store www.admin.shopnexnow.store;
8585
return 301 https://$host$request_uri;
8686
}
8787

@@ -186,7 +186,7 @@ http {
186186
# ----------------------------------------------------
187187
server {
188188
listen 443 ssl;
189-
server_name seller.shopnexnow.store;
189+
server_name seller.shopnexnow.store www.seller.shopnexnow.store;
190190

191191
ssl_certificate /etc/letsencrypt/live/shopnexnow.store/fullchain.pem;
192192
ssl_certificate_key /etc/letsencrypt/live/shopnexnow.store/privkey.pem;
@@ -270,7 +270,7 @@ http {
270270
# ----------------------------------------------------
271271
server {
272272
listen 443 ssl;
273-
server_name admin.shopnexnow.store;
273+
server_name admin.shopnexnow.store www.admin.shopnexnow.store;
274274

275275
ssl_certificate /etc/letsencrypt/live/shopnexnow.store/fullchain.pem;
276276
ssl_certificate_key /etc/letsencrypt/live/shopnexnow.store/privkey.pem;

0 commit comments

Comments
 (0)