From f63ca52bc03f0bee08f096ee0e661592f8578c3f Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Wed, 6 Jul 2022 21:07:10 +0200 Subject: [PATCH] fix: remove page rule at all --- .ci/index.ts | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/.ci/index.ts b/.ci/index.ts index fd48e937..7c8f3e54 100644 --- a/.ci/index.ts +++ b/.ci/index.ts @@ -1,22 +1,9 @@ -import * as cloudflare from '@pulumi/cloudflare' import { prometheusStack } from 'dcl-ops-lib/prometheus' -import { getZoneId } from 'dcl-ops-lib/cloudflare' import { createFargateTask } from 'dcl-ops-lib/createFargateTask' import { env, envTLD } from 'dcl-ops-lib/domain' const API_VERSION = 'v1' -const getCloudflareDomain = (env: string) => { - switch (env) { - case 'stg': - return '.today' - case 'prod': - return '.org' - default: - return '.zone' - } -} - export = async function main() { const revision = process.env['CI_COMMIT_SHA'] const image = `decentraland/nft-server:${revision}` @@ -92,20 +79,6 @@ export = async function main() { const publicUrl = nftAPI.endpoint - new cloudflare.PageRule('trendings-cache', { - target: `${baseHostname}${getCloudflareDomain( - env - )}/${API_VERSION}/trendings`, - zoneId: getZoneId(), - actions: { - alwaysOnline: 'on', - cacheLevel: 'cache_everything', - cacheTtlByStatuses: [{ codes: '200', ttl: 31536000 /* a year */ }], - edgeCacheTtl: 31536000 /* a year */, - browserCacheTtl: '31536000' /* a year */, - }, - }) - return { publicUrl, }