mirror of https://github.com/status-im/consul.git
Update UI staging build for vercel hosting (#9628)
* update ui staging for vercel * move vercel.json * add a couple more settings * fix comments
This commit is contained in:
parent
8d440c532a
commit
88d5e00f99
|
@ -21,19 +21,18 @@ dist: clean
|
||||||
CONSUL_UI_INSTALL_FLAGS=--focus \
|
CONSUL_UI_INSTALL_FLAGS=--focus \
|
||||||
$(MAKE)
|
$(MAKE)
|
||||||
|
|
||||||
# Build a distribution of the UI for Netlify previews.
|
# Build a distribution of the UI for Vercel previews.
|
||||||
# The distribution must be copied into the ui/ subfolder
|
# The distribution must be copied into the ui/ subfolder
|
||||||
# in order to mirror the go binary
|
# in order to mirror the go binary
|
||||||
#
|
#
|
||||||
# Netlify Settings:
|
# Vercel Settings:
|
||||||
# ---
|
# ---
|
||||||
# base-directory: ui
|
# Base Directory: ui
|
||||||
# build command: make dist-netlify
|
# Build Command: make dist-netlify
|
||||||
# publish directory: ui/dist
|
# Publish Directory: ui/dist
|
||||||
dist-netlify: clean
|
dist-vercel: clean
|
||||||
mkdir -p dist/ui && \
|
mkdir -p dist/ui && \
|
||||||
cd packages/consul-ui && \
|
cd packages/consul-ui && \
|
||||||
CONSUL_UI_INSTALL_FLAGS=--focus \
|
CONSUL_UI_INSTALL_FLAGS=--focus \
|
||||||
$(MAKE) build-staging && \
|
$(MAKE) build-staging && \
|
||||||
mv dist/* ../../dist/ui && \
|
mv dist/* ../../dist/ui
|
||||||
cp _redirects ../../dist/_redirects
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
/ /ui
|
|
||||||
/ui/* /ui/index.html 200
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"public": true,
|
||||||
|
"github": { "silent": true },
|
||||||
|
"redirects": [{ "source": "/", "destination": "/ui/" }],
|
||||||
|
"rewrites": [{ "source": "/ui/(.*)", "destination": "/ui/index.html" }]
|
||||||
|
}
|
Loading…
Reference in New Issue