import { defineConfig } from "vite"; import { nitro } from "nitro/vite"; import { solidStart } from "@solidjs/start/config"; export default defineConfig({ plugins: [solidStart(), nitro() ], // Same port as the other web templates, which the API allows via CORS. server: { port: 5173 }, // SolidStart's dev toolbar imports this CommonJS package in the browser, which fails unless prebundled. optimizeDeps: { include: ["@solidjs/start > @jridgewell/trace-mapping"] }, });