aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-02-22 09:15:19 +0200
committerGitHub <[email protected]>2020-02-22 09:15:19 +0200
commit90f5dbae1d65615c5a8a8d039add0d2230abd75a (patch)
tree45a4256926d5c66ecd3f68795fdd13fd67af836b
parentb8ffcdf9a4b8d61ef896c102732e15af39e883b5 (diff)
downloadbootstrap-90f5dbae1d65615c5a8a8d039add0d2230abd75a.tar.xz
bootstrap-90f5dbae1d65615c5a8a8d039add0d2230abd75a.zip
Netlify: set Hugo's `baseURL` to the `DEPLOY_PRIME_URL` variable (#30214)
This will allow each branch/preview to have its own base URL instead of the default one of the main site (getbootstrap.com).
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index 32e45fd08..418997a16 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"release-zip": "cross-env-shell \"rm -rf bootstrap-$npm_package_version-dist && cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && rm -rf bootstrap-$npm_package_version-dist\"",
"dist": "npm-run-all --parallel css js",
"test": "npm-run-all lint dist js-test docs-build docs-lint",
- "netlify": "npm-run-all dist release-sri docs-build",
+ "netlify": "cross-env-shell HUGO_BASEURL=$DEPLOY_PRIME_URL npm-run-all dist release-sri docs-build",
"watch": "npm-run-all --parallel watch-*",
"watch-css-main": "nodemon --watch scss/ --ext scss --exec \"npm-run-all css-lint css-compile css-prefix\"",
"watch-css-docs": "nodemon --watch site/assets/scss/ --ext scss --exec \"npm run css-lint\"",