summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/package.json
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-12 22:42:12 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-17 17:06:47 +0200
commit4397a959e806bf476be4c81bc804616adf58b969 (patch)
treea2bfdcb314594433413a235b516d18fa5416bf6d /opendc-web/opendc-web-ui/package.json
parentd21606bd238702645690586df5ad5b5075ca09c9 (diff)
ui: Migrate from CRA to Next.js
This change updates the web frontend to use Next.js instead of Create React App (CRA). Next.js enables the possibility of rendering pages on the server side (which reduces the time to first frame) and overall provides a better development experience. Future commits will try to futher optimize the implementation for Next.js.
Diffstat (limited to 'opendc-web/opendc-web-ui/package.json')
-rw-r--r--opendc-web/opendc-web-ui/package.json13
1 files changed, 5 insertions, 8 deletions
diff --git a/opendc-web/opendc-web-ui/package.json b/opendc-web/opendc-web-ui/package.json
index 61099709..f6917398 100644
--- a/opendc-web/opendc-web-ui/package.json
+++ b/opendc-web/opendc-web-ui/package.json
@@ -16,7 +16,6 @@
"author": "Georgios Andreadis <g.andreadis@atlarge-research.com> (https://gandreadis.com/)",
"license": "MIT",
"private": true,
- "proxy": "http://localhost:8081",
"dependencies": {
"@sentry/react": "^5.30.0",
"@sentry/tracing": "^5.30.0",
@@ -27,6 +26,7 @@
"konva": "~7.2.5",
"lint-staged": "~10.2.2",
"mathjs": "~7.6.0",
+ "next": "^10.2.0",
"prettier": "~2.0.5",
"prop-types": "~15.7.2",
"react": "~17.0.2",
@@ -36,12 +36,10 @@
"react-hotkeys": "^2.0.0",
"react-konva": "~17.0.2-0",
"react-redux": "~7.2.0",
- "react-router-dom": "~5.1.2",
- "react-scripts": "~4.0.3",
"reactstrap": "^8.9.0",
"recharts": "~2.0.9",
"redux": "~4.0.5",
- "redux-localstorage": "~0.4.1",
+ "redux-localstorage": "^0.4.1",
"redux-logger": "~3.0.6",
"redux-saga": "~1.1.3",
"redux-thunk": "~2.3.0",
@@ -58,10 +56,9 @@
"scripts": {
"format": "prettier --write src",
"precommit": "lint-staged",
- "start": "react-scripts start",
- "build": "react-scripts build",
- "test": "react-scripts test --env=jsdom",
- "eject": "react-scripts eject"
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start"
},
"browserslist": {
"production": [