diff --git a/.eslintrc.json b/.eslintrc.json
index 40d0927..b1216f5 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,12 +5,11 @@
"es2021": true,
"node": true
},
- "extends": "plugin:react/recommended",
+ "extends": "next/core-web-vitals",
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest"
},
- "plugins": ["react", "@typescript-eslint"],
"rules": {}
}
diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile
index 67492bb..7309e8a 100644
--- a/ci/Jenkinsfile
+++ b/ci/Jenkinsfile
@@ -43,6 +43,7 @@ pipeline {
stage('noise-js') { steps { script { buildExample() } } }
stage('noise-rtc') { steps { script { buildExample() } } }
stage('relay-direct-rtc') { steps { script { buildExample() } } }
+ stage('rln-js') { steps { script { buildNextJSExample() } } }
}
}
@@ -51,7 +52,6 @@ pipeline {
stage('relay-js') { steps { script { copyExample() } } }
stage('store-js') { steps { script { copyExample() } } }
stage('light-js') { steps { script { copyExample() } } }
- stage('rln-js') { steps { script { copyExample() } } }
stage('light-chat') { steps { script { copyExample() } } }
}
}
@@ -86,3 +86,13 @@ def copyExample(example=STAGE_NAME) {
sh "mkdir -p ${dest}"
sh "cp -r ${source}/. ${dest}"
}
+
+def buildNextJSExample(example=STAGE_NAME) {
+ def dest = "${WORKSPACE}/build/docs/${example}"
+ dir("examples/${example}") {
+ sh 'npm install --silent'
+ sh 'npm run build'
+ sh "mkdir -p ${dest}"
+ sh "cp -r out/. ${dest}"
+ }
+}
diff --git a/examples/light-js/index.html b/examples/light-js/index.html
index 4ad44b3..5e7d4da 100644
--- a/examples/light-js/index.html
+++ b/examples/light-js/index.html
@@ -60,6 +60,13 @@