BREAKING: merge API routes and pages concept (#53)
This commit merges API routes and pages into a single concept. The pages/api folder is now not special anymore.
This commit is contained in:
@@ -81,7 +81,7 @@ export async function render(opts: RenderOptions): Promise<string> {
|
||||
|
||||
const vnode = h(DATA_CONTEXT.Provider, {
|
||||
value: dataCache,
|
||||
children: h(opts.page.component, props),
|
||||
children: h(opts.page.component!, props),
|
||||
});
|
||||
|
||||
const ctx = new RenderContext(crypto.randomUUID(), opts.url, opts.page.route);
|
||||
|
||||
Reference in New Issue
Block a user