From 3e36a751b6fd9058d2f59274b8a961fb515f7f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=AD=D8=B3=DB=8C=D9=86=20=D9=85=D8=B9=D8=B5=D9=88=D9=85?= =?UTF-8?q?=DB=8C=20=D9=BE=D9=88=D8=B1?= Date: Tue, 28 May 2024 13:28:21 +0330 Subject: [PATCH] sitemap catch --- .env.production | 2 +- Dockerfile.x | 4 ++-- src/app/sitemap.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.production b/.env.production index ce6fc73..3c5eacf 100644 --- a/.env.production +++ b/.env.production @@ -7,4 +7,4 @@ NEXT_PUBLIC_API_URL=https://api.hamyanedalat.com/api NEXT_PUBLIC_STORAGE_URL=http://storage.hamyanedalat.com STORAGE_URL=http://storage.hamyanedalat.com NEXT_PUBLIC_PHONE_NUMBER=02122894819 -NEXT_PUBLIC_PACKAGE_VERSION=0.0.4.8 \ No newline at end of file +NEXT_PUBLIC_PACKAGE_VERSION=0.0.5.9 \ No newline at end of file diff --git a/Dockerfile.x b/Dockerfile.x index 7a02fd9..5a66263 100644 --- a/Dockerfile.x +++ b/Dockerfile.x @@ -14,5 +14,5 @@ CMD ["node_modules/.bin/next", "start"] -# docker build -f Dockerfile.x -t registry.vnfco.ir/hamyan/web:0.0.2.6 . -# docker push registry.vnfco.ir/hamyan/web:0.0.3.7 \ No newline at end of file +# docker build -f Dockerfile.x -t registry.vnfco.ir/hamyan/web:0.0.4.8 . +# docker push registry.vnfco.ir/hamyan/web:0.0.4.8 \ No newline at end of file diff --git a/src/app/sitemap.js b/src/app/sitemap.js index 8eca20e..19e7c9b 100644 --- a/src/app/sitemap.js +++ b/src/app/sitemap.js @@ -2,7 +2,8 @@ import xml2js from "xml2js"; async function getData(id) { const res = await fetch( - `https://storage.hamyanedalat.com/site-maps/site-map.xml` + `https://storage.hamyanedalat.com/site-maps/site-map.xml`, + { cache: "no-cache" } ); const xml = await res.text();