Category: Supabase and databases

Supabase Storage: Bucket not found after changing the environment

Read this guide in Polish

The app tries to send a picture, but the bucket only exists at another instance.

How to identify the source of the problem

Compare the Supabase design identifier and the name of the bucket with the upload environment.

Compare the result for the authorized and unauthorised user, project name and exact error code.

Repair steps

Create a properly configured bucket in the target project and use the identical name in the code.

How to Test Solution

Upload works on production without saving data in the test instance.

Security and restrictions

Change permissions and scheme first on test data with backup. Do not put service role in your browser.