diff --git a/.vercelignore b/.vercelignore deleted file mode 100644 index f455f15ee..000000000 --- a/.vercelignore +++ /dev/null @@ -1,66 +0,0 @@ -# --- Monorepo files --- -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions -.eslintcache -.DS_Store -.vscode -.idea -.vercel - -# --- Next.js files --- - -# dependencies -packages/nextjs/node_modules -packages/nextjs/.pnp -packages/nextjs/.pnp.js - -# testing -packages/nextjs/coverage - -# next.js -packages/nextjs/.next/ -packages/nextjs/out/ - -# production -packages/nextjs/build - -# misc -packages/nextjs/.DS_Store -packages/nextjs/*.pem - -# debug -packages/nextjs/npm-debug.log* -packages/nextjs/yarn-debug.log* -packages/nextjs/yarn-error.log* -packages/nextjs/.pnpm-debug.log* - -# local env files -packages/nextjs/.env.local -packages/nextjs/.env.development.local -packages/nextjs/.env.test.local -packages/nextjs/.env.production.local - -# typescript -packages/nextjs/*.tsbuildinfo - -# --- Hardhat files --- - -packages/hardhat/node_modules -packages/hardhat/.env -packages/hardhat/coverage -packages/hardhat/coverage.json -packages/hardhat/typechain -packages/hardhat/typechain-types -packages/hardhat/temp - -packages/hardhat/cache -packages/hardhat/artifacts - -packages/hardhat/artifacts-zk -packages/hardhat/cache-zk - -packages/hardhat/deployments diff --git a/package.json b/package.json index a4fc79db0..3e026f114 100644 --- a/package.json +++ b/package.json @@ -31,14 +31,12 @@ "next:build": "yarn workspace @se-2/nextjs build", "postinstall": "husky install", "precommit": "lint-staged", - "vercel": "vercel", - "vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" + "vercel": "yarn workspace @se-2/nextjs vercel", + "vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo" }, "packageManager": "yarn@3.2.3", "devDependencies": { "husky": "^8.0.1", - "lint-staged": "^13.0.3", - "next": "^14.0.4", - "vercel": "^32.4.1" + "lint-staged": "^13.0.3" } } diff --git a/packages/nextjs/.gitignore b/packages/nextjs/.gitignore index cb31783f6..2e243c7d6 100644 --- a/packages/nextjs/.gitignore +++ b/packages/nextjs/.gitignore @@ -33,3 +33,4 @@ yarn-error.log* # typescript *.tsbuildinfo +.vercel diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index ff0917991..c77574eef 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -51,6 +51,7 @@ "prettier": "^2.8.4", "tailwindcss": "^3.3.3", "type-fest": "^4.6.0", - "typescript": "^5.1.6" + "typescript": "^5.1.6", + "vercel": "^32.4.1" } } diff --git a/packages/nextjs/vercel.json b/packages/nextjs/vercel.json new file mode 100644 index 000000000..f5e3cac2b --- /dev/null +++ b/packages/nextjs/vercel.json @@ -0,0 +1,3 @@ +{ + "installCommand": "yarn install" +} diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 106ca9cd5..000000000 --- a/vercel.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "installCommand": "yarn install --frozen-lockfile", - "buildCommand": "yarn next:build", - "outputDirectory": "packages/nextjs/.next", - "framework": "nextjs" -} diff --git a/yarn.lock b/yarn.lock index 0b947bfa0..cdd9ea40e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1891,6 +1891,7 @@ __metadata: typescript: ^5.1.6 use-debounce: ^8.0.4 usehooks-ts: ^2.13.0 + vercel: ^32.4.1 viem: 1.19.9 wagmi: 1.4.12 zustand: ^4.1.2 @@ -12273,8 +12274,6 @@ __metadata: dependencies: husky: ^8.0.1 lint-staged: ^13.0.3 - next: ^14.0.4 - vercel: ^32.4.1 languageName: unknown linkType: soft