From 04c5cae894e93c10617c5207957406cf84b2e957 Mon Sep 17 00:00:00 2001 From: kicap1992 Date: Sat, 2 Jul 2022 21:11:51 +0800 Subject: [PATCH] first commit --- .babelrc | 1 - components/halaman/DataSet.js | 2 +- components/halaman/InputData.js | 2 +- next.config.js | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 .babelrc diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 5605544..0000000 --- a/.babelrc +++ /dev/null @@ -1 +0,0 @@ -{"presets": ["next/babel"]} \ No newline at end of file diff --git a/components/halaman/DataSet.js b/components/halaman/DataSet.js index 476fc07..2ff3018 100644 --- a/components/halaman/DataSet.js +++ b/components/halaman/DataSet.js @@ -27,7 +27,7 @@ function DataSet(props) { }); himpunan_fuzzy = props.data.himpunan_fuzzy; - url = "http://127.0.0.1:5000/"; + url = "https://myfuzzybe2.herokuapp.com//"; table_rule_base = rule_base.map((item, index) => { return ( diff --git a/components/halaman/InputData.js b/components/halaman/InputData.js index ef4abe1..755b8bf 100644 --- a/components/halaman/InputData.js +++ b/components/halaman/InputData.js @@ -71,7 +71,7 @@ function InputData(props) { setLoading(true); try { //fetch api post - const response = await fetch("http://127.0.0.1:5000/", { + const response = await fetch("https://myfuzzybe2.herokuapp.com/", { method: "POST", body: formdata, }) diff --git a/next.config.js b/next.config.js index a843cbe..ca2117b 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,6 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, + reactStrictMode: false, } module.exports = nextConfig