New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@primer/next

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primer/next

Primer components and helpers for Next.js

latest
npmnpm
Version
0.0.10
Version published
Maintainers
4
Created
Source

@primer/next

React components and helpers for Primer sites built with Next.js.

Features

  • MDX support for pages with .md and .mdx extensions
  • Conversion of .svg files into React components with SVGR
  • Sets assetPrefix to process.env.NOW_URL, and exposes it to the client via publicRuntimeConfig

Configuration

Configuration happens in your next.config.js via what Zeit refers to as a "plugin" but is really just a function that generates a configuration object:

// next.config.js
const withPrimer = require('@primer/next/plugin')
module.exports = withPrimer({
  // base Next config
}, {
  // optional plugin options
})

or, if you just want the default setup, simply:

const withPrimer = require('@primer/next/plugin')
module.exports = withPrimer()

Pages

TBD

Keywords

primer

FAQs

Package last updated on 30 Nov 2018

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