Explanation about how to remove any lib/utility you don't need/like
You can use other alternative libraries for analytics.
We've experimented with Google Analytics and were really disappointed by it. Amplitude is much better, both for configuring the events, documenting them and exploit them. But it's much more expensive.
-
Remove the following libraries:
amplitude-js
: Top-level amplitude official lib, used by react-amplitude.@amplitude/react-amplitude
: React-friendly amplitude lib, non-officially maintained. Really useful when working with react.
-
Remove their components usage in the source code
-
Remove the
AMPLITUDE_API_KEY
env var
We strongly recommend to keep Emotion. You can use both Styled Component approach and inline styles, it should feet all needs.
- Remove the following libraries:
@emotion/core
: Necessary to use emotion, with built-incss
notation support.@emotion/styled
: Necessary to used thestyled
notation.emotion-theming
: Theming library inspired by styled-components
- Remove their components usage in the source code +
/** @jsx jsx */
You may replace Sentry by another monitoring tool of your choice. Make sure it is JS universal-friendly though.
- Remove the following libraries:
@sentry/browser
: Package to use from the browser.@sentry/node
: Package to use from the server.
- Remove their components usage in the source code
- Remove the
SENTRY_DSN
env var - Remove alias in next.config.js
config.resolve.alias['@sentry/node'] = '@sentry/browser';