mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
- Updated vitest.config.ts to include a new alias for the TanStack Start server context, improving path resolution. - Introduced a stub for the TanStack Start server context to streamline server context handling. These changes enhance the integration of TanStack Start by improving the Vite configuration and server context management.
17 lines
585 B
TypeScript
17 lines
585 B
TypeScript
import { fileURLToPath } from 'node:url' // THIS_LINE_PLATFORM template
|
|
import { defineConfig, mergeConfig } from 'vitest/config'
|
|
import sharedConfig from '../../vitest.shared'
|
|
|
|
const tanstackStartServerContextStub = fileURLToPath(new URL('./src/tanstack-start-server-context.default.ts', import.meta.url)) // THIS_LINE_PLATFORM template
|
|
|
|
export default mergeConfig(
|
|
sharedConfig,
|
|
defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@stackframe/tanstack-start/tanstack-start-server-context": tanstackStartServerContextStub, // THIS_LINE_PLATFORM template
|
|
},
|
|
},
|
|
}),
|
|
)
|