Fix path prefix for github actions
Some checks are pending
Build Eleventy Forgero / build (24.x) (push) Waiting to run
Some checks are pending
Build Eleventy Forgero / build (24.x) (push) Waiting to run
This commit is contained in:
parent
a0ac8f2c12
commit
77be44f66c
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue