{"_id":"@devtim/gatsby-plugin-nginx-redirect","_rev":"1-7efaea0acbbeb0b583d5f86d8d4c3368","name":"@devtim/gatsby-plugin-nginx-redirect","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.12":{"name":"@devtim/gatsby-plugin-nginx-redirect","version":"0.0.12","description":"Adds your redirects to nginx conf on gatsby build","main":"index.js","scripts":{"build":"babel src --out-dir . --ignore \"**/*.test.js\"","prepare":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir .","test":"jest"},"keywords":["gatsby","gatsby-plugin","nginx","redirect","redirects","nginx.conf","createRedirect"],"repository":{"type":"git","url":"git+https://github.com/gimoteco/gatsby-plugin-nginx-redirect.git"},"author":{"name":"Guilherme Barbosa Ferreira","email":"gimoteco@gmail.com"},"license":"MIT","dependencies":{"fs-extra":"^9.0.0","lodash":"^4.17.20","nginx-conf":"^1.5.0"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.11.6","@babel/preset-env":"^7.11.5","babel-jest":"^26.3.0","babel-preset-gatsby-package":"^0.4.2","cross-env":"^5.2.1","jest":"^26.4.2"},"peerDependencies":{"gatsby":"^4.0.0-next"},"engines":{"node":">=14.15.0"},"homepage":"https://github.com/gimoteco/gatsby-plugin-nginx-redirect","bugs":{"url":"https://github.com/gimoteco/gatsby-plugin-nginx-redirect"},"gitHead":"be033afc4836ebd6d7fd8218447d8dc95a8d5844","_id":"@devtim/gatsby-plugin-nginx-redirect@0.0.12","_nodeVersion":"14.18.0","_npmVersion":"8.1.1","dist":{"integrity":"sha512-W0H6LfWYOwCAz4KujlE0m0q2MkHORJvsXCRgPJK+yDg97M36dn4TTOZkhnEHWwtb55Z5MC85wO7hMxm88jT2CQ==","shasum":"a9624421ba1cdfc4d6411eb288e6968c9f9409e7","tarball":"https://registry.npmjs.org/@devtim/gatsby-plugin-nginx-redirect/-/gatsby-plugin-nginx-redirect-0.0.12.tgz","fileCount":5,"unpackedSize":3696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtmB+CRA9TVsSAnZWagAAlDAP/0tjKDVmJaxnOQepHjBv\nYB9nP8EYA2Kwbyo+Kf7AljK1kzFR/4wYFkY43+XVJ0FdJJ1OAJYnAu6Qbjsg\nA9qtmgWHmbMXDZ7qCxNqL5Smee1/fuCBtx4X784gIpS8HvnCQX+xC3w+A3yf\nFBA1fZub7P5nh7exOIM9inIy9eYF5j7sUG4CLu9KU5ZclyFdoP8LX25BOEpR\nv7zo8VNLKIMS1okd1FjJW00kDURTlO8LUL8GDGKfiFl3Je9iMi0lMFHOB3Es\n7Jfw59RtIkydJkQb2Y7m2QqJSlZ9qI12G+awW/9j6Fuyyhz/YS5aAB2ouS0m\n27OGjEYCFbxomvpcxqoe4+twTJdMkfOWfL68i4OtEs39JCW99eP4whOQwlkW\nDS+GiLgZ0UnXPC0Re/u/hQjunNsKJtRNKUzxBThwe3xNzwYn2dqQRyTglYw6\nLhbhO827w5DJ7HiCrodxcN2E4DgsGc1iXlmR/31DKy0ezM76a6ljSngO6FDB\nVO7l9dkacSTddBJB8QhZmNwJ+rYHYyvu126rb8SYEDXPABtG2Egne2Oq/qA9\nQ/eh7SeoQ8vUzgZWyeg673YtM7uUy8i4VJqfpIqYQZqw+OQ80BEd09VKPbq3\nZtYo0sn+UFgi3jXOSCnNmZDyLBDZJJLxhltDTCgasj8AwHC5mqkmaSgD59O5\nGXlg\r\n=e5P9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr9o5mDwNC00KSNPNKBJF7EreUtU6oQZ8hv8IuHu14uAiAyhXlvtTboRN5KjHY2bNx2apuFDbef4NFuecxZ3K3wbQ=="}]},"_npmUser":{"name":"devtim","email":"ts@devtim.de"},"directories":{},"maintainers":[{"name":"devtim","email":"ts@devtim.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-nginx-redirect_0.0.12_1639342206539_0.8720575984335937"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-12T20:50:06.498Z","0.0.12":"2021-12-12T20:50:06.719Z","modified":"2022-04-05T04:11:27.898Z"},"maintainers":[{"name":"devtim","email":"ts@devtim.de"}],"description":"Adds your redirects to nginx conf on gatsby build","homepage":"https://github.com/gimoteco/gatsby-plugin-nginx-redirect","keywords":["gatsby","gatsby-plugin","nginx","redirect","redirects","nginx.conf","createRedirect"],"repository":{"type":"git","url":"git+https://github.com/gimoteco/gatsby-plugin-nginx-redirect.git"},"author":{"name":"Guilherme Barbosa Ferreira","email":"gimoteco@gmail.com"},"bugs":{"url":"https://github.com/gimoteco/gatsby-plugin-nginx-redirect"},"license":"MIT","readme":"## Description\n\nThis plugin creates a nginx conf file with the gatsby created redirects\n\n### Dependencies\n\nIn order to work you have to use the output .conf file in your nginx server\n\n## How to install\n\n`npm install --save gatsby-plugin-nginx-redirect`\n\n## Available options\n\n### inputConfigFile (required)\n\nThe path for input nginx configuration file\n\n### outputConfigFile (required)\n\nThe path of the outputted nginx configuration file with the redirects within.\n\n### whereToIncludeRedirects (optional)(defaults to: \"server\")\n\nThe dot notation to define (using lodash's get) where to include the redirects\n\n## Examples of usage\n\n### In gatsby-config.js\n\n```javascript\nplugins: [\n  ...,\n  {\n    resolve: \"gatsby-plugin-nginx-redirect\",\n    options: {\n      inputConfigFile: `${__dirname}/nginx.conf`,\n      outputConfigFile: `${__dirname}/nginx.out.conf`,\n      whereToIncludeRedirects: \"http.server\" // defaults to: \"server\"\n    },\n  },\n  ...\n]\n```\n\nNow you can use gatsby\\`s `createRedirect` action to generate your custom http redirects\n\n## How to contribute\n\nFeel free to open an issue with your doubt, bug or suggestion.\n","readmeFilename":"README.md"}