mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Dax Raad <d@ironbay.co>
25 lines
515 B
TypeScript
25 lines
515 B
TypeScript
import { defineConfig, PluginOption } from "vite"
|
|
import { solidStart } from "@solidjs/start/config"
|
|
import { nitro } from "nitro/vite"
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
solidStart() as PluginOption,
|
|
nitro({
|
|
compatibilityDate: "2024-09-19",
|
|
preset: "cloudflare_module",
|
|
cloudflare: {
|
|
nodeCompat: true,
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
allowedHosts: true,
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: ["cloudflare:workers"],
|
|
},
|
|
minify: false,
|
|
},
|
|
})
|