Skip to content

Commit 5b0bd68

Browse files
committed
vercel -> cloudflare
1 parent 7c83916 commit 5b0bd68

File tree

4 files changed

+2492
-4830
lines changed

4 files changed

+2492
-4830
lines changed

astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import cloudflare from '@astrojs/cloudflare';
12
import mdx from '@astrojs/mdx';
23
import node from '@astrojs/node';
34
import sitemap from '@astrojs/sitemap';
45
import svelte from '@astrojs/svelte';
56
import tailwind from '@astrojs/tailwind';
6-
import vercel from '@astrojs/vercel/serverless';
77
import AutoImport from 'astro-auto-import';
88
import { defineConfig } from 'astro/config';
99
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
@@ -25,12 +25,12 @@ import { autolinkConfig } from './plugins/mdx/rehype-autolink-config';
2525
import { externalLinksConfig } from './plugins/mdx/rehype-external-links-config';
2626
import { rehypeOptimizeStatic } from './plugins/mdx/rehype-optimize-static';
2727

28-
const isLocal = !process.env.VERCEL;
28+
const isLocal = !process.env.CLOUDFLARE;
2929

3030
export default defineConfig({
3131
site: 'https://vidstack.io',
32-
output: 'hybrid',
33-
adapter: isLocal ? node({ mode: 'standalone' }) : vercel({ edgeMiddleware: true }),
32+
output: 'static',
33+
// adapter: isLocal ? node({ mode: 'standalone' }) : cloudflare(),
3434
vite: {
3535
resolve: {
3636
alias: {

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
"dev": "astro dev --host",
77
"start": "astro dev --host",
88
"build": "astro build",
9-
"build:vercel": "VERCEL=true astro build",
9+
"build:cf": "CLOUDFLARE=true astro build",
1010
"preinstall": "npx only-allow pnpm",
1111
"preview": "astro preview",
12-
"deploy": "pnpm build:vercel && vercel deploy --prebuilt",
1312
"astro": "astro"
1413
},
1514
"dependencies": {
@@ -34,12 +33,12 @@
3433
},
3534
"devDependencies": {
3635
"@algolia/client-search": "^4.20.0",
36+
"@astrojs/cloudflare": "^11.2.0",
3737
"@astrojs/mdx": "^3.1.0",
3838
"@astrojs/node": "^8.2.5",
3939
"@astrojs/sitemap": "^3.1.5",
4040
"@astrojs/svelte": "^5.5.0",
4141
"@astrojs/tailwind": "^5.1.0",
42-
"@astrojs/vercel": "^7.6.0",
4342
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
4443
"@iconify-json/lucide": "^1.1.112",
4544
"@maverick-js/cli": "0.40.4",

0 commit comments

Comments
 (0)