From 97ee13a5effc417066c9c18f6b66b040f276d025 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Mon, 27 Nov 2023 16:49:00 +0300 Subject: [PATCH] Correct base url for hugo --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6589d3b..bf3e5b7 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,10 @@ "preview:webpack": "npm run start:webpack", "prebuild": "rimraf dist", "build": "npm run build:webpack && npm run build:hugo", - "build-testing": "npm run build-testing:webpack && npm run build:hugo", + "build-testing": "npm run build-testing:webpack && npm run build-testing:hugo", "build:preview": "npm run build:webpack && npm run build:hugo:preview", - "build:hugo": "hugo -d ../dist -s site -v", + "build:hugo": "HUGO_BASEURL=http://aerokube.ru.website.yandexcloud.net/moon/ hugo -d ../dist -s site -v", + "build-testing:hugo": "HUGO_BASEURL=http://aerokube.ru.website.yandexcloud.net/unstable/moon/ hugo -d ../dist -s site -v", "build:hugo:preview": "npm run build:hugo -- -D -F", "build:webpack": "cross-env NODE_ENV=production webpack --config webpack.prod.js --hot --inline", "build-testing:webpack": "cross-env NODE_ENV=testing webpack --config webpack.prod.js --hot --inline"