Closed rorywhite200 closed 2 months ago
I ran into this error when trying it out briefly:
I believe this error occurs as you don't have the _environment.local
file with the proxy server address. I'll send this to you.
I believe this error occurs as you don't have the _environment.local file with the proxy server address. I'll send this to you.
Does that mean that this is a temporary change you have made just to prevent abuse as we develop the book? (Since learners would not have access to this file)
I have moved the javascript logic for creating the chat interface into a
chat.js
file. This should allow us to import it as a function wherever we require in the book, usingimport {createChatInterface} from "./chat.js"
.I also deleted the old proxy server and saved the new one as an environmental variable. From what I understand we can't access this in javascript directly and instead have to pass it to ojs inside an R codeblock like so:
For local development the environmental variable URL is saved in a
_environment.local
file.