@@ -1,10 +1,14 @@
|
||||
import { defineConfig } from "vite";
|
||||
import { nitroV2Plugin as nitro } from "@solidjs/vite-plugin-nitro-2";
|
||||
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"] },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user