Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updating Next JS to a newer version #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "next",
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
}
}
44 changes: 0 additions & 44 deletions .prettierignore

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN mkdir -p /usr/app
WORKDIR /usr/app
COPY . /usr/app
RUN \
yarn && \
yarn build
npm i -f && \
npm run build
EXPOSE 3000
CMD [ "yarn", "start"]
CMD [ "npm", "start"]
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Please check `-config.json` and fill them with right values.
```json
{
"RSK_NODE": "NODE_URL",
"API_URL": "API_FETCH_URL",
"SOLVE_CAPTCHA_URL": "https://www.google.com/recaptcha/api/siteverify",
"SECRET_VERIFY_CAPTCHA": "",
"SITE_KEY_CAPTCHA": "",
Expand All @@ -38,7 +37,6 @@ Please check `-config.json` and fill them with right values.
In order to run a production version, please check if `prod-config.json` exists, if not create one with the configuration described previously.

- **RSK_NODE** is the URL where the node is running.
- **API_URL** where the API is hosted.
- **SOLVE_CAPTCHA_URL** is for checking the solution.
- **SECRET_VERIFY_CAPTCHA** secret for captcha validation.
- **SITE_KEY_CAPTCHA** verification key from the client.
Expand All @@ -55,19 +53,19 @@ This project requires node version 16
First install depenecies (use yarn)

```bash
yarn
npm install
```

Then run app

```bash
yarn dev
npm run dev
```

You'll need a running blockchain in order to run this environment. To do this, you can run a local ganache and point it at _dev-config.json_, **RSK_NODE** variable.
Notice that you won't be able to get a real [explorer](https://explorer.testnet.rsk.co/) link because you're running a local blockchain instead of an RSK one!

There is no need to change API_URL, VALUE_TO_DISPENSE, GAS_PRICE, GAS_LIMIT and TAG_MANAGER_ID.
There is no need to change VALUE_TO_DISPENSE, GAS_PRICE, GAS_LIMIT and TAG_MANAGER_ID.

## Production deploy

Expand All @@ -94,7 +92,7 @@ docker run -d --name rbtc-faucet -p 3000:3000 rbtc-faucet
You can lint the whole project with [prettier](https://prettier.io/), just run

```bash
yarn lint
npm run lint
```

Setup linting options at `.prettierrc`
49 changes: 0 additions & 49 deletions components/carousel.tsx

This file was deleted.

1 change: 0 additions & 1 deletion dev-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"RSK_NODE": "https://public-node.testnet.rsk.co",
"API_URL": "http://localhost:3000/api",
"SOLVE_CAPTCHA_URL": "https://www.google.com/recaptcha/api/siteverify",
"SECRET_VERIFY_CAPTCHA": "",
"SITE_KEY_CAPTCHA": "",
Expand Down
Binary file removed diagrams/stack.png
Binary file not shown.
12 changes: 0 additions & 12 deletions diagrams/stack.wsd

This file was deleted.

4 changes: 2 additions & 2 deletions faucet-sensitive.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"FAUCET_ADDRESS": "FAUCET_ADDRESS_SHOULDNT_BE_AT_STATIC",
"FAUCET_PRIVATE_KEY": "FAUCET_PRIVATE_SHOULDNT_BE_AT_STATIC"
"FAUCET_ADDRESS": "FAUCET_ADDRESS_SHOULDNT_BE_AT_STATIC",
"FAUCET_PRIVATE_KEY": "FAUCET_PRIVATE_SHOULDNT_BE_AT_STATIC"
}
7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

5 changes: 4 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
4 changes: 0 additions & 4 deletions next.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
Loading