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

View file

@ -6,15 +6,15 @@ import node from "@astrojs/node";
import vercel from "@astrojs/vercel/serverless"; import vercel from "@astrojs/vercel/serverless";
let astroAdapter; 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"); console.debug("Using Vercel adapter");
astroAdapter = vercel(); astroAdapter = vercel();
} else if (process.env.NETLIFY) { } else if (process.env.NETLIFY) {
console.debug("Using Netlify adapter"); console.debug("Using Netlify adapter");
astroAdapter = netlify(); astroAdapter = netlify();
} else if (process.env.CF_PAGES) {
console.debug("Using Cloudflare adapter");
astroAdapter = cloudflare();
} else { } else {
console.debug("Using Node.js adapter"); console.debug("Using Node.js adapter");
astroAdapter = node({ astroAdapter = node({