From 66fc114f4fb73bb18b23157d41273d97b221cc7d Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 18 Mar 2023 03:12:42 +0100 Subject: [PATCH] Try to make Cloudflare deploy its config and not Netlify --- astro.config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 95af1d1..e96960c 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -6,15 +6,15 @@ import node from "@astrojs/node"; import vercel from "@astrojs/vercel/serverless"; let astroAdapter; -if (process.env.VERCEL) { +if (process.env.CF_PAGES) { + console.debug("Using Cloudflare adapter"); + astroAdapter = cloudflare(); +} else if (process.env.VERCEL) { console.debug("Using Vercel adapter"); astroAdapter = vercel(); } else if (process.env.NETLIFY) { console.debug("Using Netlify adapter"); astroAdapter = netlify(); -} else if (process.env.CF_PAGES) { - console.debug("Using Cloudflare adapter"); - astroAdapter = cloudflare(); } else { console.debug("Using Node.js adapter"); astroAdapter = node({