import { Link, Outlet, createRootRoute } from '@tanstack/solid-router' import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools' import stylesCss from '../styles.css?url' export const Route = createRootRoute({ head: () => ({ links: [ { rel: 'icon', href: '/images/favicon.ico' }, { rel: 'stylesheet', href: stylesCss }, ], meta: [ { title: 'TanStack Router SSR Basic File Based Streaming', }, { charSet: 'UTF-8', }, { name: 'viewport', content: 'width=device-width, initial-scale=1.0', }, ], scripts: [ { type: 'module', src: import.meta.env.PROD ? '/static/entry-client.js' : '/src/entry-client.tsx', }, ], }), component: RootComponent, notFoundComponent: () => { return (

This is the notFoundComponent configured on root route

Start Over
) }, }) function RootComponent() { return ( <>
Home {' '} Counter {' '} Posts {' '} Pathless Layout {' '} This Route Does Not Exist

) }