Socket
Book a DemoInstallSign in
Socket

next-htaccess-generator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-htaccess-generator

This is a simple package to generate htaccess file from next build.

0.0.6
npmnpm
Version published
Weekly downloads
43
Maintainers
1
Weekly downloads
 
Created
Source

Node .htaccess generator

This project generates an htaccess file from next js static build.

Install as dev dep

npm install next-htaccess-generator --save-dev

Config:

create jay.config.json file at the root of your folder

content of jay.config.json: { "buildPath": "./out", "include404": false, "outputPath": "out" }

Add script in package.json of your project

"build-htaccess": "next-htaccess-generator build"

create htaccess

Now that you have configured the generator its time to create htaccess

Just hit: npm run build-htaccess

your htaccess will be waiting at outputPath that you have configured

Keywords

next

FAQs

Package last updated on 12 Mar 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.