Skip to content

Commit 3c78176

Browse files
authored
Fix netlify deploy preview baseUrl (#569)
1 parent aacaea5 commit 3c78176

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
[build.environment]
66
HUGO_VERSION = "0.92.0"
77
YARN_VERSION = "1.22.17"
8+
9+
[context.deploy-preview]
10+
command = "yarn run build -b $DEPLOY_PRIME_URL"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Sup! This is the source code of the nushackers blog site http://nushackers.org.",
55
"license": "MIT",
66
"scripts": {
7-
"build": "hugo",
7+
"build": "hugo --gc",
88
"dev": "hugo serve"
99
},
1010
"devDependencies": {

0 commit comments

Comments
 (0)