forked from cms/tibi-svelte-starter
sourcemap tests
This commit is contained in:
@@ -51,7 +51,7 @@ function isSsrToken(c) {
|
||||
* @returns {string}
|
||||
*/
|
||||
function tpl(c, filename) {
|
||||
return c.template(c.file(filename), {
|
||||
return c.tpl.execute(c.fs.readFile(filename), {
|
||||
context: c,
|
||||
config: config,
|
||||
/**
|
||||
@@ -200,8 +200,8 @@ function parseDate(d) {
|
||||
* clear SSR cache
|
||||
*/
|
||||
function clearSSRCache() {
|
||||
var info = context.deleteDocuments("ssr", {})
|
||||
context.header("X-SSR-Cleared", info.removed)
|
||||
var info = context.db.deleteMany("ssr", {})
|
||||
context.response.header("X-SSR-Cleared", info.removed)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user