27 lines
640 B
TypeScript
27 lines
640 B
TypeScript
import { defineConfig } from '@tanstack/react-start/config';
|
|
import tsConfigPaths from 'vite-tsconfig-paths';
|
|
import { paraglideVitePlugin as paraglide } from '@inlang/paraglide-js';
|
|
|
|
export default defineConfig({
|
|
tsr: {
|
|
appDirectory: 'src',
|
|
},
|
|
vite: {
|
|
plugins: [
|
|
tsConfigPaths({
|
|
projects: ['./tsconfig.json'],
|
|
}),
|
|
paraglide({
|
|
project: './project.inlang',
|
|
outdir: './src/paraglide',
|
|
outputStructure: 'message-modules',
|
|
cookieName: 'locale',
|
|
strategy: ['cookie', 'preferredLanguage', 'baseLocale'],
|
|
}),
|
|
],
|
|
},
|
|
server: {
|
|
preset: 'bun',
|
|
},
|
|
});
|