UNPKG

nextjs-redirect

Version:

Redirect to any URL in NextJS both in client and server

80 lines (79 loc) 2.23 kB
{ "name": "nextjs-redirect", "description": "Redirect to any URL in NextJS both in client and server", "version": "6.0.1", "author": "Pablo Varela <pablo@pablopunk.com>", "bugs": { "url": "https://github.com/pablopunk/nextjs-redirect/issues", "email": "pablo@pablopunk.com" }, "contributors": [ "Pablo Varela <pablo@pablopunk.com>" ], "peerDependencies": { "next": "*", "react": "*" }, "devDependencies": { "@types/cypress": "^1.1.3", "@types/node": "^14.0.13", "@types/react": "^16.9.36", "cypress": "^9.3.1", "dts-bundle-generator": "^4.3.0", "husky": "*", "next": "*", "nodemon": "^2.0.16", "prettier": "*", "pretty-quick": "*", "react": "*", "start-server-and-test": "^1.14.0", "sucrase": "^3.20.3" }, "homepage": "https://github.com/pablopunk/nextjs-redirect", "keywords": [ "nextjs", "redirect", "zeit", "vercel", "react", "component", "automatic", "simple", "url", "302" ], "license": "MIT", "husky": { "hooks": { "pre-commit": "npm run build && pretty-quick --staged" } }, "prettier": { "semi": false, "singleQuote": true, "tabWidth": 2 }, "repository": { "type": "git", "url": "https://github.com/pablopunk/nextjs-redirect" }, "scripts": { "build": "sucrase src -d dist --transforms imports,typescript,jsx && npm run generate-types", "dev": "nodemon --watch src/* --exec 'npm run build'", "generate-types": "dts-bundle-generator -o typings.d.ts src/index.tsx", "prepare": "npm run build", "cypress": "cypress open", "cypress:ci": "cypress run", "start-test-server": "npm run build && cd cypress/test-server && npm i && npm start", "start-test-server-dev": "cd cypress/test-server && npm run dev", "test:dev": "start-server-and-test start-test-server-dev http://localhost:8123 cypress", "test:ci": "start-server-and-test start-test-server http://localhost:8123 cypress:ci", "test:static-export": "cd cypress/test-server && npm i && npm run build && npx next export" }, "main": "./dist/index.js", "types": "./typings.d.ts", "files": [ "dist/index.js", "typings.d.ts" ] }