mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +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 "$(PWD)/redirects.js:/app/redirects.js" \
|
||||||
--volume "next-dir:/app/website-preview/.next" \
|
--volume "next-dir:/app/website-preview/.next" \
|
||||||
--volume "$(PWD)/.env:/app/.env" \
|
--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.
|
# Default: run this if working on the website locally to run in watch mode.
|
||||||
.PHONY: website
|
.PHONY: website
|
||||||
|
@ -6,6 +6,8 @@ PREVIEW_DIR=website-preview
|
|||||||
CLONE_DIR=website-preview
|
CLONE_DIR=website-preview
|
||||||
# The product for which we are building the deploy preview
|
# The product for which we are building the deploy preview
|
||||||
PRODUCT=consul
|
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
|
from_cache=false
|
||||||
|
|
||||||
@ -28,4 +30,4 @@ fi
|
|||||||
cd "$PREVIEW_DIR"
|
cd "$PREVIEW_DIR"
|
||||||
|
|
||||||
# Run the build:deploy-preview start script
|
# 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
|
PREVIEW_DIR=website-preview
|
||||||
# The product for which we are building the deploy preview
|
# The product for which we are building the deploy preview
|
||||||
PRODUCT=consul
|
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
|
should_pull=true
|
||||||
|
|
||||||
@ -22,4 +24,4 @@ if [ "$should_pull" = true ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run the dev-portal content-repo start script
|
# 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