-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔴 feat(auth): deprecate clerk because i18n errors
Any implementation of internalization and the existence of Clerk in middleware.ts leads to strange problems, for example, PageSpeed Insights crashes with a 401 status code.
- Loading branch information
Showing
139 changed files
with
5,345 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,45 @@ | ||
# ?? ======================================================================= | ||
# ** Install VS Code ext `aaron-bond.better-comments` for better experience. | ||
# ** ----------------------------------------------------------------------- | ||
# Since the ".env" file is gitignored, you can use the ".env.example" file | ||
# to build a new ".env" file when you clone the repo. Keep this file | ||
# up-to-date when you add new variables to `.env`. | ||
# ** ----------------------------------------------------------------------- | ||
# This file will be committed to version control, so make sure not to have | ||
# any secrets in it. If you are cloning this repo, create a copy of this | ||
# file named ".env" and populate it with your secrets. | ||
# ** ----------------------------------------------------------------------- | ||
# When adding additional environment variables, the schema in "/src/env.mjs" | ||
# should be updated accordingly. | ||
# ?? ======================================================================= | ||
|
||
# !! [DB] DRIZZLE: PLANETSCALE (https://planetscale.com) | ||
# ?======================================================== | ||
# !! NEVER COMMIT .env FILE !! ONLY COMMIT .env.example !! | ||
# Improve Your VS Code Experience with the `aaron-bond.better-comments` Extension. | ||
# Default Environment Variable Values. Define default values for environment variables required to run the app. | ||
# Overriding Defaults. These defaults can be overridden by environment-specific .env files, such as .env.development, | ||
# and local .env files like .env.local and .env.development.local. | ||
# Important: No Secrets Here. Never store secrets in this file. Store sensitive information in a .env.local file | ||
# or an environment-specific local .env file, like .env.development.local or .env.test.local. | ||
# Do not commit these local env files to source control. | ||
# Getting Started. If you're new or cloning the repo, use the ".env.example" file as a template to create your ".env" file. | ||
# Keep this file current when adding new variables to `.env`. | ||
# Use Caution When Committing. Remember that this file will be committed to version control. Ensure it does not contain secrets. | ||
# When cloning this repo, create a copy named ".env" and add your secrets. | ||
# Schema Updates. When adding new environment variables, update the schema in "/src/env.mjs" accordingly. | ||
# ?======================================================== | ||
|
||
# !! DRIZZLE: PLANETSCALE (https://planetscale.com) | ||
|
||
# 1) Get the Database data from the "prisma" dropdown selector in PlanetScale. | ||
# 2) Change the query params at the end of the URL to "?ssl={"rejectUnauthorized":true}" | ||
|
||
# ?? [4] mysql://<...>?ssl={"rejectUnauthorized":true} | ||
DATABASE_URL="" | ||
|
||
# !! COMMON CREDENTIALS | ||
|
||
# Default host for the app | ||
# Use the production URL when deploying to production, e.g. https://example.com | ||
NEXT_PUBLIC_APP_URL="http://localhost:3000" | ||
|
||
# Google Analytics (for `nextjs-google-analytics`) | ||
# e.g. G-UA-123456789-0 | ||
NEXT_PUBLIC_GA_MEASUREMENT_ID="" | ||
|
||
# Authentication JWT Secret (`openssl rand -base64 32`) | ||
NEXTAUTH_SECRET="" | ||
|
||
# Temporary | ||
NEXTAUTH_URL="http://localhost:3000" | ||
VERCEL_URL="" | ||
NEXT_PUBLIC_VERCEL_URL="" | ||
|
||
# !! CLERK CREDENTIALS (https://clerk.com) | ||
|
||
# pk_test, and sk_test are development keys | ||
|
@@ -33,12 +52,6 @@ NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="" | |
# ?? [7] sk_test_**** | ||
CLERK_SECRET_KEY="" | ||
|
||
# !! RELIVATOR CREDENTIALS (https://relivator.bleverse.com) | ||
|
||
# Use the production URL when deploying to production, e.g. https://example.com | ||
# ?? [8] For dev env: http://localhost:3000 | ||
NEXT_PUBLIC_APP_URL="http://localhost:3000" | ||
|
||
# !! FILE UPLOADING (https://uploadthing.com) | ||
|
||
# ?? [10] sk_live_**** | ||
|
@@ -63,12 +76,12 @@ STRIPE_API_KEY="" | |
STRIPE_WEBHOOK_SECRET="" | ||
|
||
# ?? [15] Store Item | price_**** | ||
# Stripe Product and Price IDs for your created products | ||
# Stripe Product and Price IDs for your created products | ||
# found at https://dashboard.stripe.com/test/products | ||
STRIPE_STD_MONTHLY_PRICE_ID="" | ||
|
||
# ?? [16] Subscription | price_**** | ||
# Stripe Product and Price IDs for your created products | ||
# Stripe Product and Price IDs for your created products | ||
# found at https://dashboard.stripe.com/test/products | ||
STRIPE_PRO_MONTHLY_PRICE_ID="" | ||
|
||
|
@@ -80,7 +93,7 @@ STRIPE_PRO_MONTHLY_PRICE_ID="" | |
# ?? [17] whsec_**** | ||
STRIPE_WEBHOOK_SECRET="" | ||
|
||
# !! RESEND (REACT EMAIL BUILDER) | ||
# !! RESEND (https://resend.com) (REACT EMAIL BUILDER) | ||
|
||
# Resend API Key found at https://resend.com/api-keys | ||
|
||
|
@@ -91,8 +104,8 @@ RESEND_API_KEY="" | |
# Or we can use this email provided by resend for only testing: "[email protected]" | ||
# It is not recommended tho | ||
|
||
# ?? [19] mail@example.com | ||
EMAIL_FROM_ADDRESS="" | ||
# ?? [19] e.g. "Relivator <hello@example.dev>" | ||
EMAIL_FROM="" | ||
|
||
# !! LOGLIB (https://loglib.io) | ||
# ?? ***_*** | ||
|
@@ -143,3 +156,19 @@ GOOGLE_CLIENT_ID="" | |
|
||
# ?? [34] | ||
GOOGLE_CLIENT_SECRET="" | ||
|
||
# ============================================================================ | ||
# Default values for environment variables requried to run the app should be | ||
# defined here. | ||
|
||
# These variables will be overwritten by any environment-specific .env files, | ||
# such as .env.development, and by and local .env files, such as .env.local and | ||
# .env.development.local. | ||
# | ||
# This file should NOT contain any secrets. Secrets should be placed in a | ||
# .env.local file, or in an environment-specific local .env file, such as | ||
# .env.development.local or .env.test.local. Local env files should not be | ||
# committed to source control. | ||
# | ||
# See https://nextjs.org/docs/basic-features/environment-variables | ||
# ============================================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: ^8.6.0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
- run: pnpm run setup | ||
- run: pnpm run check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ env: | |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: "fake" | ||
CLERK_SECRET_KEY: "fake" | ||
RESEND_API_KEY: "fake" | ||
EMAIL_FROM_ADDRESS: "[email protected]" | ||
EMAIL_FROM: "[email protected]" | ||
UPLOADTHING_SECRET: "fake" | ||
UPLOADTHING_APP_ID: "fake" | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: "fake" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,5 @@ robots.txt | |
sitemap.xml | ||
sitemap-*.xml | ||
|
||
/src/data/db/dm/ | ||
# another files | ||
/src/data/db/drizzle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.