Encrypt openai token in browser local storage via Cryptr#75
Encrypt openai token in browser local storage via Cryptr#75Merkie wants to merge 3 commits intoShipBit:mainfrom
Conversation
|
@Merkie is attempting to deploy a commit to the ShipBit Team on Vercel. A member of the Team first needs to authorize it. |
|
you can also see that i broke out the openai token into its own local storage value and store. just FYI. it is stored in localstorage and encrypted/decrypted on the server. |
|
Ok, im pretty happy with where it stands now lmk what you think. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Shackless
left a comment
There was a problem hiding this comment.
Cool, I took a first look and will test in more detail later, probably start of next week.
Apparently there are some additional steps missing for Vercel. In case you can't access the build log:
SSR is disabled because everything (except shared chats) is coming from localStorage, so there wouldn't be much benefit in prerendering (the layout?).

Alright, so I added basic encryption with a SITE_KEY environment variable. Don't merge yet. I'll have to clean up some more stuff, most likely. Also, is there any reason why you disable SSR? If we are running on Vercel, we can use SSR to our advantage, no? It would make implementing a database much easier.