mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 04:11:15 +02:00
20 lines
498 B
TypeScript
20 lines
498 B
TypeScript
import { dirname, resolve } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import solidPlugin from "vite-plugin-solid";
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [solidPlugin({ ssr: true })],
|
|
environments: {
|
|
ssr: {
|
|
build: {
|
|
emptyOutDir: false,
|
|
rolldownOptions: {
|
|
input: resolve(__dirname, "src/entry-server.tsx"),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|