Skip to content

Commit

Permalink
🎄feat(app): release relivator 1.2.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Dec 27, 2023
1 parent 0bcee92 commit 9098721
Show file tree
Hide file tree
Showing 468 changed files with 46,567 additions and 14,158 deletions.
156 changes: 101 additions & 55 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,32 @@
# 🔴 REQUIRED
#===========================================

# neon (https://neon.tech) | planetscale (https://planetscale.com)
# planetscale (https://planetscale.com) | neon (https://neon.tech)
# vercel (https://vercel.com) | railway (https://railway.app)
NEXT_PUBLIC_DB_PROVIDER="planetscale"

# postgres://username:password@hostname/database
# mysql://username:password@hostname/database
# postgres://username:password@hostname/database
DATABASE_URL="mysql://YOUR_MYSQL_URL_HERE"

# authjs (https://authjs.dev) | clerk (https://clerk.com)
NEXT_PUBLIC_AUTH_PROVIDER="clerk"

#===========================================
# 🟢 OPTIONAL
# 🟢 OPTIONAL (EASY)
#===========================================

# https://dashboard.clerk.com
# Test mode: pk_test_ and sk_test_
# Production: pk_live_ and sk_live_
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_"
CLERK_SECRET_KEY="sk_test_"

# Production: https://use-your-domain-here.com
NEXT_PUBLIC_APP_URL="http://localhost:3000"
NEXTAUTH_URL="http://localhost:3000"
# clerk (https://clerk.com) | authjs (https://authjs.dev)
NEXT_PUBLIC_AUTH_PROVIDER="authjs"

# https://convertsimple.com/random-base64-generator
NEXTAUTH_SECRET="PleaseUseSomethingRandomHere"
# Required if you have chosen "clerk" as auth provider
# https://dashboard.clerk.com/last-active?path=api-keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
CLERK_SECRET_KEY=""

# https://discord.com/developers/applications
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""

# https://github.com/settings/developers
GITHUB_CLIENT_SECRET=""
GITHUB_CLIENT_ID=""
# Specify your website domain in production
NEXT_PUBLIC_APP_URL="http://localhost:3000"

# https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_SECRET=""
GOOGLE_CLIENT_ID=""
#===========================================
# 🟡 OPTIONAL (MEDIUM)
#===========================================

# https://dashboard.stripe.com/test/products
STRIPE_PROFESSIONAL_SUBSCRIPTION_PRICE_ID=""
Expand All @@ -50,54 +37,113 @@ STRIPE_ENTERPRISE_SUBSCRIPTION_PRICE_ID=""
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=""
STRIPE_SECRET_KEY=""

# Scroll down for instructions
# Read the instructions at the end of file
STRIPE_WEBHOOK_SIGNING_SECRET=""

# Specify if you want image uploads
# https://uploadthing.com/dashboard
UPLOADTHING_SECRET=""
UPLOADTHING_APP_ID=""

#===========================================
# 🔵 ADDITIONAL
# 🟠 OPTIONAL (ADVANCED)
#===========================================

# next-intl | next-international (soon) | disable (soon)
# Specify if you have "authjs" as auth provider
# https://discord.com/developers/applications
DISCORD_CLIENT_SECRET=""
DISCORD_CLIENT_ID=""
# https://github.com/settings/developers
GITHUB_CLIENT_SECRET=""
GITHUB_CLIENT_ID=""
# https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_SECRET=""
GOOGLE_CLIENT_ID=""
# https://generate-secret.vercel.app/32
NEXTAUTH_SECRET="UseSomethingRandomHere32CharLong"
NEXTAUTH_URL="http://localhost:3000"

# Specify if you want to have
# https://loglib.io analytics
LOGLIB_SITE_ID=""

#===========================================
# 🔵 OPTIONAL (ADDITIONAL)
#===========================================

# Specify if you want to enable ip rate limit
# Upstash Redis (https://console.upstash.com)
UPSTASH_REDIS_REST_URL=""
UPSTASH_REDIS_REST_TOKEN=""

# If you want multiplayer https://liveblocks.io
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY=""

# Set "true" to enable checks for any bot activity
CHECK_BOT_ACTIVITY="false"

# Set "true" to enable "src/core/cors/csp.mjs" file
NEXT_PUBLIC_CSP_XSS="false"

# Set "false" to ask search engines not to index site
# Ypu need to have NEXT_PUBLIC_CSP_XSS="true" as well
NEXT_PUBLIC_IS_LIVE="true"

# next-intl | next-international (soon) | none (soon)
NEXT_PUBLIC_INTL_PROVIDER="next-intl"

# none | contentlayer (soon)
NEXT_PUBLIC_CMS_PROVIDER="none"
# Set "true" to hide environment info when missing
NEXT_PUBLIC_HIDE_ENV_INFO="false"

# drizzle | prisma (soon)
NEXT_PUBLIC_DB_LIBRARY="drizzle"
# It's recommended to specify your live domain
# here on the development (with https:// part)
# Use comma without spaces to specify multiple
# Ypu need to have NEXT_PUBLIC_CSP_XSS="true"
ADDITIONAL_CSP_ORIGINS="https://*.vercel.app,https://relivator.bleverse.com"

#===========================================
# 🟡 INSTRUCTIONS
# 🟣 INSTRUCTIONS
#===========================================

# [IMPORTANT THINGS TO KNOW]
# Never share anywhere and never commit ".env" file.
# When adding additional environment variables, schema
# in "/src/env.mjs" file should be updated accordingly.

# [STRIPE WEBHOOK FOR DEVELOPMENT]
# 1. Install Stripe CLI: https://stripe.com/docs/stripe-cli#install
# 2. https://dashboard.stripe.com/test/webhooks/create?endpoint_location=local
# 3. Open 3 terminals: (1) "pnpm dev"; (2) "stripe login"; (3) "pnpm stripe:listen".
# 4. Copy signing secret from your terminal, paste to STRIPE_WEBHOOK_SIGNING_SECRET.
# 5. Run "stripe trigger payment_intent.succeeded", wait for Completed, click Done.
# Keep "pnpm stripe:listen" enabled when you need to test Stripe on the localhost.
# When testing the Stripe, use these test data: 4242 4242 4242 4242 | 12/34 | 567.
# When testing the Stripe -> use these test data: 4242424242424242 | 12/34 | 567

# [STRIPE WEBHOOK FOR PRODUCTION]
# 1. https://dashboard.stripe.com/test/webhooks/create?endpoint_location=hosted
# 2. As endpoint use: https://use-your-domain-here.com/api/webhooks/stripe
# 3. Choose "Latest API version" and select these events:
# - charge.captured
# - charge.succeeded
# - checkout.session.completed
# - customer.subscription.updated
# - invoice.payment_succeeded
# - invoice.upcoming
# - payment_intent.payment_failed
# - payment_intent.processing
# - payment_intent.succeeded
# - subscription_schedule.canceled
# 4. Open newly created webhook and reveal your signing secret.
# Please note: you will get a test-mode production signing key,
# switch to the live mode to get real one, steps are the same.
# 3. "Select events" > "Select all events" > "Add events".
# 4. "Events on your account"; Version "Latest API version".
# 5. Scroll the page down to the end and click "Add endpoint".
# 6. Open newly created webhook and reveal your signing secret.
# Please note: you will get the test-mode production signing key,
# switch to the live-mode to get real one, steps possibly the same.

# [IMPORTANT THINGS TO KNOW]
# Never share or commit the ".env" file anywhere.
# When adding new variables, update the schema
# in the "/src/env.mjs" file accordingly.
# Also, specify any missing variables
# in "/src/indicators-error.tsx".

#===========================================
# ⭕ CURRENTLY NOT USED
#===========================================

# For Discord Server Integration: Go to Edit Channel
# > Integrations > New Webhook, and obtain your URL
DISCORD_WEBHOOK_URL=""

# stripe | lemonsqueezy (soon) | disable (soon)
NEXT_PUBLIC_PAYMENT_PROVIDER="stripe"

# drizzle | prisma (soon)
NEXT_PUBLIC_DB_LIBRARY="drizzle"

# none | contentlayer (soon)
NEXT_PUBLIC_CMS_PROVIDER="none"
18 changes: 0 additions & 18 deletions .eslintignore

This file was deleted.

Loading

1 comment on commit 9098721

@blefnk
Copy link
Owner Author

@blefnk blefnk commented on 9098721 Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.