Closed do4ng closed 1 year ago
v0.1 is in development
prext@<0.1.0-beta.4 doesn't support this features.
prext@<0.1.0-beta.4
export $page variable so that prext knows the page data.
$page
// pages/my-about.ts export function get(req, res) { res.end("About Page"); } export const $page = { path: "/about" };
Create file page/_404.ts to handle errors.
page/_404.ts
// pages/_404.ts export function get(req, res) { res.end("page not found"); }
server.all
page/users/$$.ts => /users/*
page/users/$$.ts
/users/*
https://github.com/do4ng/prext/blob/main/packages/prext/CHANGELOG.md#010-2023-02-21
v1 is in development! #11
v0.1 is in development
Features to be added
prext@<0.1.0-beta.4
doesn't support this features.export
$page
variable so that prext knows the page data.Create file
page/_404.ts
to handle errors.server.all
page/users/$$.ts
=>/users/*