This project is a PoC created to check if an Astro project can be deployed across all edge environments ๏ผ netlify, vercel, deno & cloudflare pages at the same time with same codebase & by only modifying the astro config.
This project has 4 routes:
/
- static html page/todos
- SSR page/edge.json
- plain api route/todoData.json
- api route that uses fetch api
- https://astro-cross-deploy.vercel.app/
- https://astro-cross-deploy.vercel.app/todos
- https://astro-cross-deploy.vercel.app/edge.json
- https://astro-cross-deploy.vercel.app/todoData.json
- https://astro-cross-deploy.netlify.app/
- https://astro-cross-deploy.netlify.app/todos
- https://astro-cross-deploy.netlify.app/edge.json
- https://astro-cross-deploy.netlify.app/todoData.json
- https://astro-cross-deploy.pages.dev/
- https://astro-cross-deploy.pages.dev/todos
- https://astro-cross-deploy.pages.dev/edge.json
- https://astro-cross-deploy.pages.dev/todoData.json
- https://astro-cross-deploy.deno.dev/
- https://astro-cross-deploy.deno.dev/todos
- https://astro-cross-deploy.deno.dev/edge.json
- https://astro-cross-deploy.deno.dev/todoData.json
This project uses ci-info
to detect the CI/CD & use the appropriate adapter for the deployment target. Refer config file