Skip to content

Commit df69c44

Browse files
authored
Fix netlify url preview (#1344)
Problem: Netlify preview url is not rendering properly Solution: Fix url to be postfixed with /nginx-gateway-fabric/
1 parent 7a37efa commit df69c44

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

site/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ build-dev:
8989
hugo --gc -e development
9090

9191
deploy-preview: hugo-mod
92-
hugo --gc -b ${NETLIFY_DEPLOY_URL}
92+
hugo --gc -b ${NETLIFY_DEPLOY_URL}/nginx-gateway-fabric/

site/config/_default/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
title = "NGINX Gateway Fabric"
22
enableGitInfo = false
33
baseURL = "/"
4-
publishDir = "public/nginx-gateway-fabric"
54
staticDir = ["static"]
65
languageCode = "en-us"
76
description = "NGINX Gateway Fabric."

site/config/development/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
baseURL = "https://docs-dev.nginx.com/nginx-gateway-fabric"
22
title = "DEV -- NGINX Gateway Fabric"
3+
publishDir = "public/nginx-gateway-fabric"
34
canonifyURLs = false

site/config/production/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
baseURL = "/nginx-gateway-fabric"
22
title = "NGINX Gateway Fabric"
3+
publishDir = "public/nginx-gateway-fabric"
34
canonifyURLs = false

site/config/staging/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
baseURL = "https://docs-staging.nginx.com/nginx-gateway-fabric"
22
title = "STAGING -- NGINX Gateway Fabric"
3+
publishDir = "public/nginx-gateway-fabric"
34
canonifyURLs = false

site/netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build]
22
base = "site/"
33
publish = "public"
4+
command = "hugo --gc -b $DEPLOY_PRIME_URL/nginx-gateway-fabric"
45

56
[context.production]
67
command = "make all"

0 commit comments

Comments
 (0)