mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
updates previews to render Developer
This commit is contained in:
parent
45ea33b5d5
commit
fc5be5d998
@ -13,7 +13,8 @@ DOCKER_RUN_FLAGS=-it \
|
||||
--volume "$(PWD)/redirects.js:/app/redirects.js" \
|
||||
--volume "next-dir:/app/website-preview/.next" \
|
||||
--volume "$(PWD)/.env:/app/.env" \
|
||||
-e "REPO=consul"
|
||||
-e "REPO=consul" \
|
||||
-e "PREVIEW_MODE=developer"
|
||||
|
||||
# Default: run this if working on the website locally to run in watch mode.
|
||||
.PHONY: website
|
||||
|
@ -6,6 +6,8 @@ PREVIEW_DIR=website-preview
|
||||
CLONE_DIR=website-preview
|
||||
# The product for which we are building the deploy preview
|
||||
PRODUCT=consul
|
||||
# Preview mode, controls the UI rendered (either the product site or developer). Can be `io` or `developer`
|
||||
PREVIEW_MODE=developer
|
||||
|
||||
from_cache=false
|
||||
|
||||
@ -28,4 +30,4 @@ fi
|
||||
cd "$PREVIEW_DIR"
|
||||
|
||||
# Run the build:deploy-preview start script
|
||||
REPO=$PRODUCT DEV_IO=$PRODUCT IS_CONTENT_PREVIEW=true HASHI_ENV=project-preview npm run build:deploy-preview
|
||||
PREVIEW_MODE=$PREVIEW_MODE REPO=$PRODUCT HASHI_ENV=project-preview npm run build:deploy-preview
|
||||
|
@ -4,6 +4,8 @@ REPO_TO_CLONE=dev-portal
|
||||
PREVIEW_DIR=website-preview
|
||||
# The product for which we are building the deploy preview
|
||||
PRODUCT=consul
|
||||
# Preview mode, controls the UI rendered (either the product site or developer). Can be `io` or `developer`
|
||||
PREVIEW_MODE=developer
|
||||
|
||||
should_pull=true
|
||||
|
||||
@ -22,4 +24,4 @@ if [ "$should_pull" = true ]; then
|
||||
fi
|
||||
|
||||
# Run the dev-portal content-repo start script
|
||||
REPO=$PRODUCT PREVIEW_DIR="$PREVIEW_DIR" npm run start:local-preview
|
||||
REPO=$PRODUCT PREVIEW_MODE=$PREVIEW_MODE npm run start:local-preview
|
||||
|
Loading…
x
Reference in New Issue
Block a user