mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-17 13:33:16 -04:00
30 lines
664 B
TypeScript
30 lines
664 B
TypeScript
import { defineConfig } from "vite";
|
|
import { devtools } from "@tanstack/devtools-vite";
|
|
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
|
|
import viteReact from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import mdx from "fumadocs-mdx/vite";
|
|
import * as MdxConfig from "./source.config";
|
|
|
|
const config = defineConfig({
|
|
server: {
|
|
port: 4000,
|
|
},
|
|
plugins: [
|
|
mdx(MdxConfig),
|
|
devtools(),
|
|
tailwindcss(),
|
|
cloudflare({ viteEnvironment: { name: "ssr" } }),
|
|
tanstackStart(),
|
|
viteReact(),
|
|
],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
});
|
|
|
|
export default config;
|