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({