mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-30 02:17:54 +00:00
* chore(deps-dev): bump vite from 7.3.1 to 8.0.0 in /frontend Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.1 to 8.0.0. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/create-vite@8.0.0/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 8.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: update config for vite v8 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stavros <steveiliop56@gmail.com>
59 lines
1.5 KiB
TypeScript
59 lines
1.5 KiB
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { visualizer } from "rollup-plugin-visualizer";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss(), visualizer()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
build: {
|
|
rolldownOptions: {
|
|
output: {
|
|
codeSplitting: {
|
|
groups: [
|
|
{
|
|
name: "ui",
|
|
test: "@radix-ui|input-otp|tailwindcss|tailwind-merge|sonner|lucide-react",
|
|
},
|
|
{
|
|
name: "i18n",
|
|
test: "i18next|i18next-browser-languagedetector|i18next-resources-to-backend",
|
|
},
|
|
{
|
|
name: "util",
|
|
test: "zod|axios|react-hook-form",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://tinyauth-backend:3000/api",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, ""),
|
|
},
|
|
"/resources": {
|
|
target: "http://tinyauth-backend:3000/resources",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/resources/, ""),
|
|
},
|
|
"/.well-known": {
|
|
target: "http://tinyauth-backend:3000/.well-known",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/\.well-known/, ""),
|
|
},
|
|
},
|
|
allowedHosts: true,
|
|
},
|
|
});
|