15 lines
488 B
TypeScript
15 lines
488 B
TypeScript
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"] },
|
|
});
|