Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How shoud look exactly a right setup of this Project? #3

Open
pumbaaisacoder opened this issue Apr 9, 2023 · 2 comments
Open

How shoud look exactly a right setup of this Project? #3

pumbaaisacoder opened this issue Apr 9, 2023 · 2 comments

Comments

@pumbaaisacoder
Copy link

Hello,

How shoud look exactly a right setup of this Project?

I have followings in my .env:

VITE_SUPABASE_URL
VITE_SUPABASE_PUBLIC_API
VITE_SUPABASE_SERVICE_ROLE

But the project works only particullary, i get the following errors:

Error:
Failed to send a request to the Edge Function

And i have a cors problem also:

cess to fetch at 'https://apcotxxxxxxxx.functions.supabase.co/get-api-key' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
fetch.ts:14 POST https://apxxxxxxxs.supabase.co/get-api-key net::ERR_FAILED

@eg9y
Copy link
Owner

eg9y commented Apr 10, 2023

Hey there! Thanks for bringing this to my attention. It looks like I should indeed update the Getting Started section. As it currently stands, you'll need to set up a Supabase local/remote instance to interact with the database. I'll make sure to update it and keep you posted. Appreciate your help! 😊

@eg9y
Copy link
Owner

eg9y commented Apr 11, 2023

Updated the README. Let me know if there are still any hiccups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants