Socket
Book a DemoInstallSign in
Socket

@kotsutsumi/next-build-exclude

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kotsutsumi/next-build-exclude

Exclude the target at build time with Next.js

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

next-build-exclude

Exclude the target at build time with Next.js

When npm run build, move the excluded target to .next-build-exclude and build, then run npm run dev to restore the target from .next-build-exclude in reverse order.

Add package

npm install @kotsutsumi/next-build-exclude

Usage

/** @type {import('next').NextConfig} */
import nextBuildExclude from '@kotsutsumi/next-build-exclude'
const nextConfig = {
    buildExclude: {
        // evacuationDir: '.next-build-exclude' // optional

        // exclude target directories or files
        exclude: ['src/app/exclude-page']
    }
}

export default nextBuildExclude(nextConfig)

Keywords

next.js

FAQs

Package last updated on 15 Oct 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.