To enable the toolbar in your local environment, add it to your project using the @vercel/toolbar
package, or with an injection script.
Install the package using the following command:
Then link your local project to your Vercel project with the vercel link
command using Vercel CLI.
vercel link [path-to-directory]
To use the Vercel Toolbar locally in a Next.js project, define withVercelToolbar
in your next.config.js
file and export it, as shown below:
/** @type {import('next').NextConfig} */
const nextConfig = {
// Config options here
};
const withVercelToolbar = require('@vercel/toolbar/plugins/next')();
// Instead of module.exports = nextConfig, do this:
module.exports = withVercelToolbar(nextConfig);
Then add the following code to your layout.tsx
or layout.jsx
file:
import { VercelToolbar } from '@vercel/toolbar/next';
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const shouldInjectToolbar = process.env.NODE_ENV === 'development';
return (
<html lang="en">
<body>
{children}
{shouldInjectToolbar && <VercelToolbar />}
</body>
</html>
);
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4