Files
monie-web/vite.config.ts
T
denis f42f6f2cf5
Deploy monie-web to prod (kaniko) / build-and-deploy (push) Successful in 10m15s
chore: initialize project
2026-04-12 20:04:22 +03:00

38 lines
938 B
TypeScript

import { paraglideVitePlugin } from "@inlang/paraglide-js";
import tailwindcss from "@tailwindcss/vite";
import { devtools } from "@tanstack/devtools-vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import viteReact from "@vitejs/plugin-react";
import { nitro } from "nitro/vite";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
const APP_BASE_PATH = "/app";
const config = defineConfig(({ command }) => ({
base: command === "build" ? `${APP_BASE_PATH}/` : "/",
plugins: [
nitro(),
devtools(),
paraglideVitePlugin({
project: "./project.inlang",
outdir: "./src/paraglide",
strategy: ["url", "baseLocale"],
}),
tsconfigPaths({ projects: ["./tsconfig.json"] }),
tailwindcss(),
tanstackStart({
spa: {
enabled: true,
},
}),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
],
}));
export default config;