Try to make Cloudflare deploy its config and not Netlify

This commit is contained in:
Nikita Karamov 2023-03-18 03:12:42 +01:00
parent c9dc947fe1
commit 66fc114f4f
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 4 additions and 4 deletions

View File

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