Fix nucleus API access
diff --git a/pages/nucleus/verify/index.js b/pages/nucleus/verify/index.js
index 9c84b84..24a0a90 100644
--- a/pages/nucleus/verify/index.js
+++ b/pages/nucleus/verify/index.js
@@ -87,7 +87,7 @@
}
let code;
try {
- code = await Axios.get(`http://${process.env.NUCLEUS_CALLBACK}/verify/${ctx.query.code}`);
+ code = await Axios.get(`${process.env.NUCLEUS_CALLBACK}verify/${ctx.query.code}`);
} catch (e) {
return {
redirect: {
@@ -109,4 +109,4 @@
code: ctx.query.code
}
}
-}
\ No newline at end of file
+}