sitemap catch

main
حسین معصومی پور 2024-05-28 13:28:21 +03:30
parent d6ced43672
commit 3e36a751b6
3 changed files with 5 additions and 4 deletions

View File

@ -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
NEXT_PUBLIC_PACKAGE_VERSION=0.0.5.9

View File

@ -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
# 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

View File

@ -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();