mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-02 21:36:19 +09:00
Added react-router + cloudflare template to migrate our cloud publishing. This template does not support image optimization and intended only for internal usage.
16 lines
421 B
TypeScript
16 lines
421 B
TypeScript
import { defineConfig } from "vite";
|
|
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [cloudflare({ viteEnvironment: { name: "ssr" } }), reactRouter()],
|
|
resolve: {
|
|
conditions: ["browser", "development|production"],
|
|
},
|
|
ssr: {
|
|
resolve: {
|
|
conditions: ["node", "development|production"],
|
|
},
|
|
},
|
|
});
|