diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-02-17 16:04:49 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-02-17 16:04:49 +0700 |
| commit | 818246e40ae6f851224ffb376c77fe8c18cc8c45 (patch) | |
| tree | 7f4681cfc9e0e4bd5dcf9eb6e8b0198c1c4c7e22 /src | |
| parent | 4ab6c248604b56708e1530e426533624beb27cda (diff) | |
<iman> add query sitemap
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/sitemap/products/[page].js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pages/sitemap/products/[page].js b/src/pages/sitemap/products/[page].js index e39755d6..3419489b 100644 --- a/src/pages/sitemap/products/[page].js +++ b/src/pages/sitemap/products/[page].js @@ -7,7 +7,10 @@ export async function getServerSideProps({ query, res }) { const baseUrl = process.env.SELF_HOST + '/shop/product/' const { page } = query const limit = 2500 - const queries = { limit, page: page.replace('.xml', '') } + const queries = { limit, page: page.replace('.xml', ''), + '-publish_b': false, + product_rating_f: '[8 TO *]', + price_tier1_v2_f: '[1 TO *]', } const products = await productSearchApi({ query: _.toQuery(queries) }) const sitemap = create('urlset', { encoding: 'utf-8' }).att( 'xmlns', |
