This is the frontend to Amazon Mining Watch built on Next.js and react-map-gl. It uses Next's native i18n support and App Router. As Next's language handling is still in flux at time of writing, it uses some custom middlewear and a cookie to persist the user's locale.
Content is pulled from markdown files in ./markdown
.
Interface translations are stored in ./dictionaries
.
To create a production build:
- Ensure you have created an
.env
file and populated it with the required env vars. - Run
yarn build
to create a production build.
Rename env-example.txt to .env and add your env values.
First, install dependences:
yarn install
and then start the dev server:
yarn dev