Add Cloudflare Workers configuration

This commit is contained in:
cloudflare-workers-and-pages[bot]
2026-05-04 16:13:49 +00:00
committed by GitHub
parent 10bd6848ef
commit 5a4e011d0e
5 changed files with 1466 additions and 6 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { cloudflare } from "@cloudflare/vite-plugin";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), cloudflare()],
server: {
proxy: {
'/api': 'http://localhost:4173',
},
},
})
})