File tree Expand file tree Collapse file tree 4 files changed +2492
-4830
lines changed
Expand file tree Collapse file tree 4 files changed +2492
-4830
lines changed Original file line number Diff line number Diff line change 1+ import cloudflare from '@astrojs/cloudflare' ;
12import mdx from '@astrojs/mdx' ;
23import node from '@astrojs/node' ;
34import sitemap from '@astrojs/sitemap' ;
45import svelte from '@astrojs/svelte' ;
56import tailwind from '@astrojs/tailwind' ;
6- import vercel from '@astrojs/vercel/serverless' ;
77import AutoImport from 'astro-auto-import' ;
88import { defineConfig } from 'astro/config' ;
99import rehypeAutolinkHeadings from 'rehype-autolink-headings' ;
@@ -25,12 +25,12 @@ import { autolinkConfig } from './plugins/mdx/rehype-autolink-config';
2525import { externalLinksConfig } from './plugins/mdx/rehype-external-links-config' ;
2626import { rehypeOptimizeStatic } from './plugins/mdx/rehype-optimize-static' ;
2727
28- const isLocal = ! process . env . VERCEL ;
28+ const isLocal = ! process . env . CLOUDFLARE ;
2929
3030export 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 : {
Original file line number Diff line number Diff line change 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" : {
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" ,
You can’t perform that action at this time.
0 commit comments