Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions packages/app-solid/file-routes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
// Generated by filesystem-routing. Do not edit.
// Regenerated whenever a route file is added, changed or removed.

declare module 'virtual:file-routes' {
/** A code-split ref: the delivery adapter emits it as a dynamic import. */
export interface FileRouteLazyRef<M = Record<string, unknown>> {
src: string
import(): Promise<M>
}

/** An eager ref: its picked exports are imported statically. */
export interface FileRouteEagerRef<M = Record<string, unknown>> {
/** The source module path — present when the convention emitted the ref lazy and `codeSplitting: false` delivered it eagerly. */
src?: string
require(): M
}

/** A flat entry of the route manifest. */
export interface FileRouteEntry {
path: string
page?: boolean
/** The page component is a server function; its `$component` is delivered eagerly. */
server?: boolean
$component?: FileRouteLazyRef<any> | FileRouteEagerRef<any>
$$route?: FileRouteEagerRef<any>
[key: string]: unknown
}

/** An entry of the nested `pageRoutes` view. */
export interface FileRouteTreeEntry extends FileRouteEntry {
id: string
children?: readonly FileRouteTreeEntry[]
}

/** The flat route manifest, in scan order. */
const routes: readonly [
{
path: '/client-side-rendered/:id'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/client-side-rendered/[id]')
>
$$route?: undefined
},
{
path: '/client-side-rendered/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/client-side-rendered/index')
>
$$route?: undefined
},
{
path: '/'
page: true
$component: FileRouteLazyRef<typeof import('./src/routes/index')>
$$route: FileRouteEagerRef<typeof import('./src/routes/index')>
},
{
path: '/server-side-rendered/:id'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/server-side-rendered/[id]')
>
$$route?: undefined
},
{
path: '/server-side-rendered/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/server-side-rendered/index')
>
$$route: FileRouteEagerRef<
typeof import('./src/routes/server-side-rendered/index')
>
},
{
path: '/ssr-throughput/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/ssr-throughput/index')
>
$$route: FileRouteEagerRef<
typeof import('./src/routes/ssr-throughput/index')
>
},
]
export default routes

/** The page entries, nested by path with grouping segments stripped. */
export const pageRoutes: readonly [
{
path: '/'
id: '/'
page: true
$component: FileRouteLazyRef<typeof import('./src/routes/index')>
$$route: FileRouteEagerRef<typeof import('./src/routes/index')>
children?: undefined
},
{
path: '/ssr-throughput/'
id: '/ssr-throughput/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/ssr-throughput/index')
>
$$route: FileRouteEagerRef<
typeof import('./src/routes/ssr-throughput/index')
>
children?: undefined
},
{
path: '/client-side-rendered/'
id: '/client-side-rendered/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/client-side-rendered/index')
>
$$route?: undefined
children?: undefined
},
{
path: '/server-side-rendered/'
id: '/server-side-rendered/'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/server-side-rendered/index')
>
$$route: FileRouteEagerRef<
typeof import('./src/routes/server-side-rendered/index')
>
children?: undefined
},
{
path: '/client-side-rendered/:id'
id: '/client-side-rendered/:id'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/client-side-rendered/[id]')
>
$$route?: undefined
children?: undefined
},
{
path: '/server-side-rendered/:id'
id: '/server-side-rendered/:id'
page: true
$component: FileRouteLazyRef<
typeof import('./src/routes/server-side-rendered/[id]')
>
$$route?: undefined
children?: undefined
},
]
}
24 changes: 24 additions & 0 deletions packages/app-solid/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "app-solid",
"private": true,
"type": "module",
"scripts": {
"dev": "vite dev",
"build": "vite build",
"start": "node dist/server/node.js",
"preview": "vite preview"
},
"dependencies": {
"@solidjs/router": "2.0.0-next.42",
"@solidjs/web": "2.0.0-rc.19",
"solid-js": "2.0.0-rc.19"
},
"devDependencies": {
"@solidjs/vite-plugin": "3.0.0-next.51",
"filesystem-routing": "0.4.0",
"vite": "8.3.3"
},
"engines": {
"node": ">=24"
}
}
Loading
Loading