mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 04:06:43 +02:00
refactor: restructure
monorepo with apps/ and services/ directories
This commit is contained in:
parent
25824ed0ac
commit
ff80aeec1f
4062 changed files with 2592 additions and 1278 deletions
|
|
@ -1,30 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to set Replicate API Key in Supabase Edge Functions
|
||||
|
||||
echo "Setting Replicate API Key for Supabase Edge Functions..."
|
||||
echo ""
|
||||
echo "Please enter your Replicate API Key (starts with r8_):"
|
||||
read -s REPLICATE_KEY
|
||||
echo ""
|
||||
|
||||
if [[ ! $REPLICATE_KEY == r8_* ]]; then
|
||||
echo "Error: API Key should start with 'r8_'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Setting the key in Supabase..."
|
||||
|
||||
# Set using Supabase CLI
|
||||
npx supabase secrets set REPLICATE_API_KEY=$REPLICATE_KEY --project-ref mjuvnnjxwfwlmxjsgkqu
|
||||
|
||||
echo ""
|
||||
echo "Waiting for secrets to sync (20 seconds)..."
|
||||
sleep 20
|
||||
|
||||
echo ""
|
||||
echo "Done! The key has been set. Please test the image generation now."
|
||||
echo ""
|
||||
echo "To verify, you can check in Supabase Dashboard:"
|
||||
echo "1. Go to Edge Functions → Secrets"
|
||||
echo "2. You should see REPLICATE_API_KEY listed there"
|
||||
Loading…
Add table
Add a link
Reference in a new issue