()
| 60 | |
| 61 | let startConfig: TanStackStartOutputConfig | null |
| 62 | const getConfig: GetConfigFn = () => { |
| 63 | if (!resolvedStartConfig.root) { |
| 64 | throw new Error(`Cannot get config before root is resolved`) |
| 65 | } |
| 66 | if (!startConfig) { |
| 67 | startConfig = parseStartConfig( |
| 68 | startPluginOpts, |
| 69 | corePluginOpts, |
| 70 | resolvedStartConfig.root, |
| 71 | ) |
| 72 | } |
| 73 | return { startConfig, resolvedStartConfig, corePluginOpts } |
| 74 | } |
| 75 | |
| 76 | // When the router basepath and vite base are misaligned during dev, |
| 77 | // we install a URL rewrite middleware instead of erroring. |
no test coverage detected