Skip to content

Instantly share code, notes, and snippets.

View rtsuk's full-sized avatar

Rob Tsuk rtsuk

  • Fantastic Experience, LLC
  • Cupertino, CA
View GitHub Profile
@danalloway
danalloway / migrate-gcs-supabase.js
Last active March 29, 2024 06:19
Migrate Google Cloud Storage (GCS) to Supabase Storage
/**
* 1.) Make sure you have the `GOOGLE_APPLICATION_CREDENTIALS` environment variable
* set to the path of your local service account credentials.
* @see https://cloud.google.com/storage/docs/reference/libraries#setting_up_authentication
*
* 2.) Make sure you have the `SUPABASE_URL` and `SUPABASE_KEY` environment variables set
* with the proper values from your Supabase Project API page.
*
* Install dependancies: `npm install --save node-fetch form-data @google-cloud/storage`
*/