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";
|
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({
|
||||||
|
|
Reference in a new issue