diff --git a/next.config.js b/next.config.js index ed07f0c3fdc63..1c379a46624dc 100644 --- a/next.config.js +++ b/next.config.js @@ -88,3 +88,11 @@ module.exports = withSentryConfig(nextConfig, { applicationKey: 'sentry-docs', }, }); + +process.on('warning', warning => { + if (warning.code === 'DEP0040') { + // Ignore punnycode deprecation warning, we don't control its usage + return; + } + console.warn(warning); // Log other warnings +}); diff --git a/src/components/header.tsx b/src/components/header.tsx index c2d53c79d3934..7b49913c4aa83 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -3,6 +3,7 @@ import {Fragment} from 'react'; import {HamburgerMenuIcon} from '@radix-ui/react-icons'; import Image from 'next/image'; +import Link from 'next/link'; import SentryLogoSVG from 'sentry-docs/logos/sentry-logo-dark.svg'; @@ -44,7 +45,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) { )} - Docs - + {!noSearch && (
diff --git a/tailwind.config.js b/tailwind.config.mjs similarity index 89% rename from tailwind.config.js rename to tailwind.config.mjs index 96e71479567df..21af6fcb48220 100644 --- a/tailwind.config.js +++ b/tailwind.config.mjs @@ -1,12 +1,14 @@ -const defaultTheme = require('tailwindcss/defaultTheme'); +import defaultTheme from 'tailwindcss/defaultTheme'; +import Typography from '@tailwindcss/typography'; +import Forms from '@tailwindcss/forms'; import { isolateInsideOfContainer, scopedPreflightStyles, } from 'tailwindcss-scoped-preflight'; /** @type {import('tailwindcss').Config} */ -module.exports = { +export default { darkMode: ['selector', '.dark'], content: ['./app/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}'], theme: { @@ -60,10 +62,8 @@ module.exports = { }, }, plugins: [ - require('@tailwindcss/typography'), - require('@tailwindcss/forms')({ - strategy: 'class', - }), + Typography, + Forms({strategy: 'class'}), scopedPreflightStyles({ // pretty minimalistic example. Same options as in the previous example are available isolationStrategy: isolateInsideOfContainer('.tw-app'),