docs: make 2.x the default version (#3369)

This commit is contained in:
Marvin Hagemeister
2025-09-09 14:36:51 +02:00
committed by GitHub
parent 2c315a9972
commit 79d8cfc3ed
109 changed files with 1589 additions and 1502 deletions
@@ -0,0 +1,27 @@
---
description: "Deploy Fresh on Cloudflare Workers"
---
Deploy Fresh to Cloudflare Workers by following these instructions:
1. Run `deno install --allow-scripts npm:@cloudflare/vite-plugin npm:wrangler`
2. Add the cloudflare plugin in your vite configuration file:
```diff vite.config.ts
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
+ import { cloudflare } from "@cloudflare/vite-plugin";
export default defineConfig({
plugins: [
fresh(),
+ cloudflare(),
],
});
```
3. Follow further instructions provided by the cloudflare vite plugin.
Check out the
[Cloudflare Documentation](https://developers.cloudflare.com/workers/vite-plugin/)
for further information.