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

fix: restore photo upload #902

Merged
merged 11 commits into from
Jul 9, 2023
Merged

fix: restore photo upload #902

merged 11 commits into from
Jul 9, 2023

Conversation

vnugent
Copy link
Contributor

@vnugent vnugent commented Jul 3, 2023

Issue #894

Google cloud setup for staging and prod bucket

  1. Add cors to staging and prod bucket

cors.json

[{"origin": ["*"],"responseHeader": ["*"],"method":
["GET","POST","HEAD","PUT"],"maxAgeSeconds": 86400}]
# repeat for prod bucket
gcloud storage buckets update gs://openbeta-staging --cors-file=cors.json 
  1. Create a service account + key (1 for prod, 1 for staging)
  • give SA admin permission
  • create a json key
  • download key and extract 2 variables: GC_BUCKET_CLIENT_EMAIL and GC_BUCKET_PRIVATE_KEY

And keys to .env.local (email contributors)

  • GC_BUCKET_PRIVATE_KEY
  • GC_BUCKET_PRIVATE_KEY

Add keys to Vercel env for staging, development and prod

Make sure to convert \n chars to actual new lines

@vercel
Copy link

vercel bot commented Jul 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
open-tacos ✅ Ready (Inspect) Visit Preview Jul 9, 2023 4:37am

@vnugent vnugent changed the title Fix 894 fix: restore photo upload Jul 3, 2023
refactor: use zustand to maintain user gallery state
refactor: correctly track uploading state
@vnugent vnugent marked this pull request as ready for review July 9, 2023 04:23
@vnugent vnugent merged commit 2d899d8 into develop Jul 9, 2023
7 checks passed
@vnugent vnugent deleted the fix-894 branch July 9, 2023 05:51
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

Successfully merging this pull request may close these issues.

1 participant