Repo demonstrating the RedwoodJS React Server Components implementation
This app shows using a Server Function as an action to call the OpenAI api using ai-jsx
No matter whether you chose to use GitPod or to run this locally you'll have to add your OpenAI API Key to .env
. The variable name should be
OPENAI_API_KEY
. Make sure you have credits on your OpenAI account
or you won't be able to use their API
yarn install
yarn rw build -v && yarn rw serve
- Look at the imports in
App.tsx
. RW's RSC implementation is compatible with packages built for NextJS. - Talk to the bot 🤖