Socket
Socket
Sign inDemoInstall

gatsby-plugin-redirects

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-redirects - npm Package Compare versions

Comparing version 0.0.1-0 to 0.0.1-1

6

gatsby-node.js
const fs = require('fs')
const { onPostBuild } = require('gatsby-plugin-meta-redirect')
const FILE_NAME = 'redirects.json'
const FILE_NAME = './redirects.json'

@@ -16,7 +16,7 @@ const fileExists = filePath => {

exports.onCreatePages = ({ actions }) => {
exports.createPages = ({ actions }) => {
const { createRedirect } = actions
if (fileExists(FILE_NAME)) {
const redirects = require(FILE_NAME)
const redirects = JSON.parse(fs.readFileSync(FILE_NAME, 'utf8'))

@@ -23,0 +23,0 @@ redirects.map(redirect => {

@@ -5,3 +5,3 @@ {

"author": "John Otander",
"version": "0.0.1-0",
"version": "0.0.1-1",
"license": "MIT",

@@ -8,0 +8,0 @@ "dependencies": {

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