Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dmno/nextjs-integration

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmno/nextjs-integration

tools for integrating dmno into nextjs

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Check out the docs for more information on how to use DMNO + Next.js.

*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE ***

If you have any questions, please reach out to us on Discord.


@dmno/nextjs-integration npm

Provides tooling to integrate dmno into your nextjs app

How to use

Add to your next config

Initialize the plugin and use in your next config (next.config.mjs)

import { dmnoNextConfigPlugin } from '@dmno/nextjs-integration';

/** @type {import('next').NextConfig} */
const nextConfig = {
  // rest of user config...
};

export default dmnoNextConfigPlugin()(nextConfig);
Add to your site code

Import the module somewhere that will affect all pages - for example in App.tsx or layout.tsx

import '@dmno/nextjs-integration';

//... the rest of your normal code ...

Gotchas

Running dmno run -w -- next dev will automatically restart the next dev server on config changes, but unfortunately it does not trigger a page refresh in the browser

Keywords

FAQs

Package last updated on 26 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc