Commit 7b857f9
authored
fix: TanStack Start friction log fixes for middleware and doctor checks (#77)
* fix: clarify TanStack Start middleware setup to prevent createRouter confusion
The installer agent could confuse TanStack Router's createRouter() with
TanStack Start's server middleware config, instructing users to add
authkitMiddleware to router.tsx instead of start.ts. Added explicit
warning in SKILL.md and improved doctor check remediation with the
correct code pattern.
* fix: doctor callback route check now searches both flat and nested routes in src/ and app/
Previously only checked flat routes in src/ and nested routes in app/,
causing false CALLBACK_ROUTE_MISSING errors for TanStack Start projects
using nested routes in src/ (e.g. src/routes/api/auth/callback.tsx).1 parent 6830a9f commit 7b857f9
3 files changed
Lines changed: 47 additions & 8 deletions
File tree
- skills/workos-authkit-tanstack-start
- src/doctor/checks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
385 | 415 | | |
386 | 416 | | |
387 | 417 | | |
| |||
514 | 544 | | |
515 | 545 | | |
516 | 546 | | |
517 | | - | |
| 547 | + | |
518 | 548 | | |
519 | 549 | | |
520 | 550 | | |
| |||
529 | 559 | | |
530 | 560 | | |
531 | 561 | | |
| 562 | + | |
532 | 563 | | |
533 | | - | |
| 564 | + | |
534 | 565 | | |
535 | 566 | | |
536 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
| 303 | + | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
| |||
423 | 426 | | |
424 | 427 | | |
425 | 428 | | |
426 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
| |||
0 commit comments