How to use the @mapbox/dr-ui/helpers/create-redirect.createRedirect function in @mapbox/dr-ui

To help you get started, we’ve selected a few @mapbox/dr-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mapbox / dr-ui / demo / src / pages / index.js View on Github external
import { prefixUrl } from '@mapbox/batfish/modules/prefix-url';
import { createRedirect } from '@mapbox/dr-ui/helpers/create-redirect';
import constants from '../constants';

export default createRedirect(prefixUrl(`${constants.BASEURL}overview/`));

@mapbox/dr-ui

Mapbox frontend tools for documentation websites.

BSD-2-Clause
Latest version published 10 months ago

Package Health Score

45 / 100
Full package analysis

Similar packages