Buckets:
| import { defineConfig, PluginOption } from "vite" | |
| import { solidStart } from "@solidjs/start/config" | |
| import { nitro } from "nitro/vite" | |
| import tailwindcss from "@tailwindcss/vite" | |
| const nitroConfig: any = (() => { | |
| const target = process.env.OPENCODE_DEPLOYMENT_TARGET | |
| if (target === "cloudflare") { | |
| return { | |
| compatibilityDate: "2024-09-19", | |
| preset: "cloudflare-module", | |
| cloudflare: { | |
| nodeCompat: true, | |
| }, | |
| } | |
| } | |
| return {} | |
| })() | |
| export default defineConfig({ | |
| plugins: [ | |
| tailwindcss(), | |
| solidStart() as PluginOption, | |
| nitro({ | |
| ...nitroConfig, | |
| baseURL: process.env.OPENCODE_BASE_URL, | |
| }), | |
| ], | |
| server: { | |
| host: "0.0.0.0", | |
| allowedHosts: true, | |
| port: 3002, | |
| }, | |
| worker: { | |
| format: "es", | |
| }, | |
| }) | |
Xet Storage Details
- Size:
- 779 Bytes
- Xet hash:
- 01b10e2976151ca3c6dc89310f75c5bbcd014762bb60848b013f18886a90ee7c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.