Fix broken docker build from last modified attempt 3
This commit is contained in:
parent
aa7cf4a987
commit
68f698aea8
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { execSync } from "node:child_process";
|
|||
export function remarkModifiedTime() {
|
||||
return (tree, file) => {
|
||||
const filepath = file.history[0];
|
||||
const result = import.meta.env.PUBLIC_COMMIT === "" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`);
|
||||
const result = typeof import.meta.env.PUBLIC_COMMIT === "undefined" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`);
|
||||
file.data.astro.frontmatter.lastModified = result.toString();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue