Closed talha-asad closed 3 years ago
I added a function for serving 404 route / template incase of a 404 to polka in server.js like the following:
server.js
const server = polka({ onNoMatch: (req, res, next) => { console.log('404 Error: ', req.url); } });
How can I render a regular elderjs route here?
For ssr look at the middleware hook id you want it through elder.js. It’ll be fiddly but it is totally doable. The docs could use an example... but it is a perfect use case for a plugin.
middleware
I added a function for serving 404 route / template incase of a 404 to polka in
server.js
like the following:How can I render a regular elderjs route here?