Download packages/console/app/vite.config.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/vite.config.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/console/app/vite.config.ts
-
curl -L -o vite.config.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/console/app/vite.config.ts
579 Bytes
| import { defineConfig, PluginOption } from "vite" | |
| import { solidStart } from "@solidjs/start/config" | |
| import { nitro } from "nitro/vite" | |
| export default defineConfig({ | |
| plugins: [ | |
| solidStart({ | |
| middleware: "./src/middleware.ts", | |
| }) as PluginOption, | |
| nitro({ | |
| compatibilityDate: "2024-09-19", | |
| preset: "cloudflare-module", | |
| cloudflare: { | |
| nodeCompat: true, | |
| }, | |
| }), | |
| ], | |
| server: { | |
| allowedHosts: true, | |
| port: 3001, | |
| }, | |
| build: { | |
| rollupOptions: { | |
| external: ["cloudflare:workers"], | |
| }, | |
| minify: false, | |
| }, | |
| }) | |