Skip to content

Commit cb43d4e

Browse files
authored
Merge pull request #205 from zero8dotdev/main
Dev
2 parents 8f90adc + 838f476 commit cb43d4e

3 files changed

Lines changed: 21 additions & 10 deletions

File tree

.env.local.sample

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RAZORPAY_KEY_ID=rzp_test_HYb5wY5i8VABeZ
2+
RAZORPAY_KEY_SECRET=PiLaQ26DCLTmCKvObBdOAvT5
3+
RAZORPAY_WEBHOOK_SECRET=srihari
4+
5+
NEXT_PUBLIC_SUPABASE_URL=https://127.0.0.1:54321
6+
SUPABASE_DIRECT_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
7+
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
8+
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
9+
SLACK_REDIRECT_URI=https://127.0.0.1:54321/auth/v1/callback
10+
NEXT_PUBLIC_REDIRECT_URL=https://localhost:3000/
11+
NEXT_PUBLIC_REDIRECT_PATH_AFTER_OAUTH="welcome"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"node": ">=20.0.0"
77
},
88
"scripts": {
9-
"dev": "next dev --experimental-https",
9+
"dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 next dev --experimental-https",
1010
"build": "next build",
1111
"start": "next start",
1212
"lint": "next lint",
@@ -82,4 +82,4 @@
8282
"tailwindcss": "^3.4.7",
8383
"typescript": "^5"
8484
}
85-
}
85+
}

supabase/config.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ max_rows = 1000
1919

2020
[api.tls]
2121
# Enable HTTPS endpoints locally using a self-signed certificate.
22-
enabled = false
22+
enabled = true
2323

2424
[db]
2525
# Port to use for the local database URL.
@@ -61,7 +61,7 @@ enabled = true
6161
# Port to use for Supabase Studio.
6262
port = 54323
6363
# External URL of the API server that frontend connects to.
64-
api_url = "http://127.0.0.1"
64+
api_url = "https://127.0.0.1"
6565
# OpenAI API Key to use for Supabase AI in the Supabase Studio.
6666
openai_api_key = "env(OPENAI_API_KEY)"
6767

@@ -97,9 +97,9 @@ file_size_limit = "50MiB"
9797
enabled = true
9898
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
9999
# in emails.
100-
site_url = "http://127.0.0.1:3000"
100+
site_url = "https://127.0.0.1:3000"
101101
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
102-
additional_redirect_urls = ["https://localhost:3000/welcome","https://localhost:3000/welcome/install-to-slack"]
102+
additional_redirect_urls = ["https://localhost:3000/welcome", "https://localhost:3000/welcome/install-to-slack"]
103103

104104
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week).
105105
jwt_expiry = 3600
@@ -180,8 +180,8 @@ max_frequency = "5s"
180180

181181
# Configure one of the supported SMS providers: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, `vonage`.
182182
[auth.sms.twilio]
183-
enabled = false
184183
account_sid = ""
184+
enabled = false
185185
message_service_sid = ""
186186
# DO NOT commit your Twilio auth token to git. Use environment variable substitution instead:
187187
auth_token = "env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)"
@@ -199,10 +199,10 @@ verify_enabled = false
199199
# Configure MFA via Phone Messaging
200200
[auth.mfa.phone]
201201
enroll_enabled = false
202-
verify_enabled = false
202+
max_frequency = "5s"
203203
otp_length = 6
204204
template = "Your code is {{ .Code }}"
205-
max_frequency = "5s"
205+
verify_enabled = false
206206

207207
# Configure MFA via WebAuthn
208208
# [auth.mfa.web_authn]
@@ -219,8 +219,8 @@ redirect_uri = "env(SLACK_REDIRECT_URI)"
219219
secret = "env(SLACK_CLIENT_SECRET)"
220220

221221
[auth.external.apple]
222-
enabled = false
223222
client_id = ""
223+
enabled = false
224224
# DO NOT commit your OAuth provider secret to git. Use environment variable substitution instead:
225225
secret = "env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)"
226226
# Overrides the default auth redirectUrl.

0 commit comments

Comments
 (0)