Files
flxn-app/vite.config.ts
T
yohlo 0a7b5fa00f
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / i18n Catalog Check (push) Failing after 10s
CI/CD Pipeline / Build and Push App Docker Image (push) Skipped
CI/CD Pipeline / Deploy to Kubernetes (push) Skipped
i18n
2026-08-08 15:29:40 -07:00

35 lines
913 B
TypeScript

import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { defineConfig } from 'vite'
import tsConfigPaths from 'vite-tsconfig-paths'
import react from '@vitejs/plugin-react';
import { lingui } from '@lingui/vite-plugin';
export default defineConfig(({ mode }) => ({
server: {
port: 3000,
allowedHosts: ["dev.flexxon.app", "flexxon.app"]
},
ssr: {
noExternal: mode === 'production' ? true : ['facehash'],
},
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
tanstackStart({
srcDirectory: 'src/app',
}),
lingui(),
react({
babel: {
plugins: [
// lingui must run before react-compiler: the compiler's memoization
// rewrites JSX in ways the macro can no longer transform
'@lingui/babel-plugin-lingui-macro',
'babel-plugin-react-compiler',
],
},
}),
]
}))