Try to make Cloudflare deploy its config and not Netlify
This commit is contained in:
parent
c9dc947fe1
commit
66fc114f4f
1 changed files with 4 additions and 4 deletions
|
@ -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({
|
||||
|
|
Reference in a new issue