We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 561f168 commit 5e91d6bCopy full SHA for 5e91d6b
src/middleware/html.js
@@ -22,9 +22,10 @@ const html_middleware = async (req, isProd) => {
22
tempSrc = `${app_path}/index.html`;
23
}
24
25
+ const paramPage = `${app_path}${paths}/@.html`
26
src = await exists(tempSrc)
- ? await Deno.readTextFile(tempSrc)
27
- : `<h1>Error In Page</h1>`;
+ ? await Deno.readTextFile(tempSrc)
28
+ : await exists(paramPage) ? await Deno.readTextFile(paramPage) : `<h1>Error In Page</h1>`;
29
30
const components = getComponents(src);
31
0 commit comments