SolidJSS
SolidJSโ€ข3y agoโ€ข
5 replies
Bersaelor

[Solid-start]FileRoutes] is there a way of using two separate Routes folders in `root.tsx`

E.g., my main content should be Client-Side rendered, but the headers should be server side rendered for every route,s o what I would like to do is:

[root.tsx]

  
    return <Html lang="en">
      <Head>
        <Routes>
          <FileRoutes folder='headers' />
        </Routes>
      </Head>
      <Body>
              <ClientOnly>
                <AuthContextProvider>
                  <AppContextProvider>
                    <Routes>
                      <FileRoutes folder='content' />
                    </Routes>
                  </AppContextProvider>
                </AuthContextProvider>
              </ClientOnly>
      </Body>
    </Html>
Was this page helpful?