Jonghakseo / chrome-extension-boilerplate-react-vite

Chrome Extension Boilerplate with React + Vite + Typescript
MIT License
2.49k stars 374 forks source link

What is the correct way to connect the database? #789

Closed kpripper closed 31 minutes ago

kpripper commented 2 days ago

Greetings! What is the correct database connection option in this boilerplate? Need a server? Are the options for creating a similar boilerplate based on Next Js being considered?

github-actions[bot] commented 2 days ago

Thank you for your contribution. We will check and reply to you as soon as possible.

Jonghakseo commented 12 hours ago

What do you mean by “database” in this context? If you just need storage, the Chrome Extension environment provides several storage APIs, including local/sessionStorage.

Connecting directly to a DB hosted on your own is generally not recommended - all of the Chrome Extension's secret keys can be easily opened externally, just like any other client-side application, which would require a separate backend server and endpoint.

kpripper commented 31 minutes ago

Thank you, comprehensively.