mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-21 06:48:57 +00:00
new examples
This commit is contained in:
14
node/tanstack-start/static/app/router.tsx
Normal file
14
node/tanstack-start/static/app/router.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createRouter as createTanStackRouter } from '@tanstack/react-router';
|
||||
import { routeTree } from './routeTree.gen';
|
||||
|
||||
export function createRouter() {
|
||||
return createTanStackRouter({
|
||||
routeTree,
|
||||
});
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface Register {
|
||||
router: ReturnType<typeof createRouter>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user