Skip to content

Commit

Permalink
fix: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
guru-web3 committed Jan 24, 2025
1 parent 850b8b5 commit dec8820
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
6 changes: 4 additions & 2 deletions examples/nextjs-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
"extends": ["prettier", "airbnb-typescript/base", "plugin:prettier/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
Expand All @@ -13,7 +13,7 @@
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["prettier", "react", "@typescript-eslint"],
"plugins": ["prettier", "react", "@typescript-eslint", "import"],
"settings": {
"import/resolver": {
"node": {
Expand All @@ -33,11 +33,13 @@
"tsx": "never"
}
],
"prettier/prettier": "error",
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"react/button-has-type": 0,
"no-console": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"import/no-extraneous-dependencies": "error",
"no-use-before-define": 0,
"promise/always-return": 0,
"react/forbid-prop-types": 0,
Expand Down
12 changes: 3 additions & 9 deletions examples/nextjs-app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
# .gitignore
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/.next/ # Remove this line if present
/out/

# production
Expand All @@ -28,7 +25,4 @@ yarn-error.log*
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
.env.production.local
2 changes: 1 addition & 1 deletion examples/nextjs-app/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const verifierMap = {
[TELEGRAM]: {
name: "Telegram",
typeOfLogin: "telegram",
clientId: "7974448012:AAGLN8ee4WnJhJt6Jc7_Sb275smMs-8K00I",
clientId: "7974448012",
verifier: "test-telegram-2",
},
[EMAIL_PASSWORD]: {
Expand Down
8 changes: 7 additions & 1 deletion examples/nextjs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"prepare": "husky"
"prepare": "husky",
"lint": "eslint --fix ."
},
"dependencies": {
"@toruslabs/customauth": "file:../..",
Expand All @@ -21,6 +22,11 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^9.18.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-react": "^7.37.4",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
Expand Down
15 changes: 15 additions & 0 deletions examples/nextjs-app/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "next.config.js",
"use": "@vercel/next"
}
],
"routes": [
{
"src": "/serviceworker",
"dest": "/serviceworker/redirect.html"
}
]
}

0 comments on commit dec8820

Please sign in to comment.