website: require Node v12

Start using Node.js v12.19.0, the most recent active LTS that is
supported by Vercel:
https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version
.

The docs now require String.prototype.matchAll, that's part of ES2020
support, and is not available on Node.js 10.x.
This commit is contained in:
Mahmood Ali
2020-11-02 10:41:21 -05:00
parent f25065f94b
commit 85a07214bd
3 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM docker.mirror.hashicorp.services/node:10.16.3-alpine
FROM docker.mirror.hashicorp.services/node:12.19.0-alpine
RUN apk add --update --no-cache git make g++ automake autoconf libtool nasm libpng-dev
COPY ./package.json /website/package.json

View File

@@ -38,8 +38,6 @@ build-image:
# Use this if you have run `build-image` to use the locally built image
# rather than our CI-generated image to test dependency changes.
website-local:
@echo "==> Downloading latest Docker image..."
@docker pull hashicorp/nomad-website
@echo "==> Starting website in Docker..."
@docker run \
--interactive \

View File

@@ -48,7 +48,7 @@ The docker image is pre-built with all the website dependencies installed, which
### With Node
If your local development environment has a supported version (v10.0.0+) of [node installed](https://nodejs.org/en/) you can run:
If your local development environment has a supported version (v12.0.0+) of [node installed](https://nodejs.org/en/) you can run:
- `npm install`
- `npm start`
@@ -146,6 +146,7 @@ $ curl ...
</Tab>
</Tabs>
Contined normal markdown content
````