Fix nucleus API access
diff --git "a/pages/nucleus/transcript/\133code\135/raw.js" "b/pages/nucleus/transcript/\133code\135/raw.js"
index da6ac40..f06c64f 100644
--- "a/pages/nucleus/transcript/\133code\135/raw.js"
+++ "b/pages/nucleus/transcript/\133code\135/raw.js"
@@ -14,7 +14,7 @@
}
let code;
try {
- code = (await Axios.get(`http://${process.env.NUCLEUS_CALLBACK}/transcript/${ctx.params.code}`))
+ code = (await Axios.get(`${process.env.NUCLEUS_CALLBACK}transcript/${ctx.params.code}`))
} catch (e) {
return {
redirect: {
@@ -25,8 +25,8 @@
}
return {
redirect: {
- destination: `http://${process.env.NUCLEUS_CALLBACK}/transcript/${ctx.params.code}`,
+ destination: `${process.env.NUCLEUS_CALLBACK}transcript/${ctx.params.code}`,
permanent: true
}
}
-}
\ No newline at end of file
+}