Files
create-glstack/template/apps/<@if(eq(context.project.frontend,"solid-start"))>web/vite.config.ts
T
gregor 2fab51878f
Publish npm package / publish (push) Successful in 26s
0.0.9
version bump
2026-10-08 09:42:06 +02:00

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"] },
});