Fix path prefix for github actions
Some checks are pending
Build Eleventy Forgero / build (24.x) (push) Waiting to run

This commit is contained in:
天クマ 2026-07-01 14:27:33 -03:00
commit 77be44f66c

View file

@ -42,7 +42,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addFilter("absoluteUrl", function(url) {
const base = "https://adrianvic.github.io";
const prefix = "/tenkuma/web";
const prefix = process.env.GITHUB_ACTIONS ? "" : "/tenkuma/web";
return base + prefix + url;
});
@ -67,7 +67,7 @@ module.exports = function(eleventyConfig) {
});
return {
pathPrefix: "/tenkuma/web",
pathPrefix: process.env.GITHUB_ACTIONS ? "" : "/tenkuma/web",
dir: {
output: "docs"
}