npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kpverse/deploy-nextjs

v0.1.2

Published

Next JS Deployment Automation Tool from KPVERSE.

Downloads

15

Readme

What is this for?

@kpverse/deploy-nextjs is an npm package to simplify the process of deploying Next JS project on GitHub Pages.

How can this benefit developers?

  1. No need to make Next JS project repository public. Only the deployment repository will b public.
  2. No need to create an account on Vercel or Netlify to host Next JS.
  3. You can use free and open-source CDNs for content delivery. (For more information read recommended Next JS configuration.)

Is this suitable for beginners?

Yes, it is beginner-friendly and streamlines the deployment process for developers of all skill levels.

Prerequisites

To use @kpverse/deploy-nextjs, your deployment repository must be hosted on GitHub, and GitHub Pages must be enabled.

Installation

You can install this package using pnpm or npm or yarn:

npm i @kpverse/deploy-nextjs -D

# or

pnpm i @kpverse/deploy-nextjs -D

# or

yarn add @kpverse/deploy-nextjs --dev

Quick Start Guide

After installation, simply run the following command to get started:

npx deploy-nextjs

Configuration Options for @kpverse/deploy-nextjs

The package generates a deploy-nextjs.config.js file upon first use, allowing you to customize your deployment configurations.

Recommended Next JS Configuration

// Recommended Next JS Configuration (next.config.js)

let GITHUB_USERNAME = "<YOUR_GITHUB_USERNAME>",
    DEPLOYMENT_REPOSITORY_NAME = "<DEPLOYMENT_REPOSITORY_NAME>",
    BASE_PATH = "<BASE_PATH>";

/** @type {import('next').NextConfig} */
const nextConfig = {
    // Read official docs from Next JS: https://nextjs.org/docs/app/api-reference/next-config-js/basePath
    // NOTE: It is optional.
    basePath: `/${BASE_PATH}`,

    // Read official docs from Next JS: https://nextjs.org/docs/app/api-reference/next-config-js/assetPrefix
    // NOTE: It is optional.
    assetPrefix: `https://cdn.jsdelivr.net/gh/${GITHUB_USERNAME}/${DEPLOYMENT_REPOSITORY_NAME}@latest/${BASE_PATH}`,

    // Read official docs from Next JS: https://nextjs.org/docs/app/api-reference/next-config-js/output
    output: "export",

    // Read official docs from Next JS: https://nextjs.org/docs/app/api-reference/next-config-js/trailingSlash
    trailingSlash: true,
};

module.exports = nextConfig;

Support and Issue Reporting

If you need assistance or want to report any issues, please visit issues tab of our GitHub repository.

Contributing

This package is open-source, and we welcome contributions from the community. You can contribute to it on GitHub.

Commercial Use

@kpverse/deploy-nextjs is licensed under the MIT License. Refer to the license for usage and permissions.

Additional Resources

Read Medium blog about this package.

Also check out YouTube video explaining this package.