Bulk commit: Stand ende 22.01.
This commit is contained in:
@@ -3,22 +3,37 @@ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
||||
import viteReact from '@vitejs/plugin-react'
|
||||
import viteTsConfigPaths from 'vite-tsconfig-paths'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import { oidcSpa } from 'oidc-spa/vite-plugin'
|
||||
import { nitroV2Plugin } from '@tanstack/nitro-v2-vite-plugin'
|
||||
|
||||
const config = defineConfig({
|
||||
plugins: [
|
||||
// this is the plugin that enables path aliases
|
||||
viteTsConfigPaths({
|
||||
projects: ['./tsconfig.json'],
|
||||
}),
|
||||
tailwindcss(),
|
||||
tanstackStart({
|
||||
customViteReactPlugin: true,
|
||||
}),
|
||||
viteReact(),
|
||||
],
|
||||
server: {
|
||||
port: 3001,
|
||||
},
|
||||
// import { nitro } from 'nitro/vite'
|
||||
|
||||
const config = defineConfig(() => {
|
||||
return {
|
||||
plugins: [
|
||||
nitroV2Plugin(),
|
||||
viteTsConfigPaths({
|
||||
projects: ['./tsconfig.json'],
|
||||
}),
|
||||
tailwindcss(),
|
||||
// nitro({ preset: 'node-server' }),
|
||||
tanstackStart({
|
||||
// spa: {
|
||||
// enabled: true,
|
||||
// },
|
||||
}),
|
||||
oidcSpa({
|
||||
freezeFetch: true,
|
||||
freezeXMLHttpRequest: true,
|
||||
freezeWebSocket: true,
|
||||
}),
|
||||
viteReact(),
|
||||
],
|
||||
server: {
|
||||
port: 3001,
|
||||
},
|
||||
// build: isSsrBuild ? ssrBuildConfig : clientBuildConfig,
|
||||
}
|
||||
})
|
||||
|
||||
export default config
|
||||
|
||||
Reference in New Issue
Block a user