T
TanStack3mo ago
fascinating-indigo

Devinxi Config File

I am working to migrate over to the latest release of TSS and wanted some guidance on how to migrate over my config to the vite config. Here is my app.config.ts. I am using a basepath and it includes some work arounds for having assets be on the basepath. It seems like the server and routers config do not seem to fit on the new TSS config. Any help would be nice.
const config = defineConfig({
vite: {
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
],
build: {
rollupOptions: {
output: {
assetFileNames: '[name].[hash][extname]',
chunkFileNames: '[name].[hash].js',
entryFileNames: '[name].[hash].js',
},
},
},
},
tsr: {
appDirectory: 'src',
},
server: {
preset: 'node-server',
replace: {
'import * as process': 'import * as processUnused',
},
},
routers: {
client: {
base: '/navigator/assets',
},
public: {
dir: './public',
base: '/navigator/assets',
},
server: {
base: '/navigator/_server',
},
},
});
const config = defineConfig({
vite: {
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
],
build: {
rollupOptions: {
output: {
assetFileNames: '[name].[hash][extname]',
chunkFileNames: '[name].[hash].js',
entryFileNames: '[name].[hash].js',
},
},
},
},
tsr: {
appDirectory: 'src',
},
server: {
preset: 'node-server',
replace: {
'import * as process': 'import * as processUnused',
},
},
routers: {
client: {
base: '/navigator/assets',
},
public: {
dir: './public',
base: '/navigator/assets',
},
server: {
base: '/navigator/_server',
},
},
});
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?