diff options
| author | Brendan Allan <[email protected]> | 2025-11-22 23:39:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-22 10:39:25 -0500 |
| commit | 85d99198b541cfdb51a53806db2fe9d3b7f2cd25 (patch) | |
| tree | 0a5cf93c9267d3764c88b6090f9c4b8b8509e10e /packages/console/app/vite.config.ts | |
| parent | 7f183f7404514f6533be6d4ff1705acd0b73a8c6 (diff) | |
| download | opencode-85d99198b541cfdb51a53806db2fe9d3b7f2cd25.tar.gz opencode-85d99198b541cfdb51a53806db2fe9d3b7f2cd25.zip | |
Use devinxi-ed Solid Start (#4635)
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Diffstat (limited to 'packages/console/app/vite.config.ts')
| -rw-r--r-- | packages/console/app/vite.config.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/console/app/vite.config.ts b/packages/console/app/vite.config.ts new file mode 100644 index 000000000..3b013e990 --- /dev/null +++ b/packages/console/app/vite.config.ts @@ -0,0 +1,25 @@ +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, + }, +}) |
