From 905ea3d23647a46e249fd0dbae828f0d9295bc8f Mon Sep 17 00:00:00 2001 From: btopro Date: Fri, 26 Jul 2024 12:32:46 -0400 Subject: [PATCH] base set for github correctly doing local build --- src/settings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings.js b/src/settings.js index b8385419..075a0ac4 100644 --- a/src/settings.js +++ b/src/settings.js @@ -61,6 +61,9 @@ module.exports = () => { else if (process.env.HAXCMS_GITHUB) { // change these if you have a custom domain basePath = `/${gitProject}/`; + if (!process.env.HAXCMS_CDN) { + cdnBase = `/${gitProject}/` + } url = `https://${gitOrg}.github.io/${gitProject}`; } else if (process.env.HAXCMS_CONTEXT == 'haxcms') {