-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to Next.js Boilerpalte v3.54
- Loading branch information
Showing
34 changed files
with
8,998 additions
and
7,554 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
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,33 @@ | ||
# FIXME: Configure environment variables for production | ||
|
||
# Hosting | ||
# Replace by your domain name | ||
NEXT_PUBLIC_APP_URL=https://example.com | ||
|
||
# Sentry DSN | ||
NEXT_PUBLIC_SENTRY_DSN= | ||
|
||
# Stripe | ||
# If you need a real Stripe subscription payment with checkout page, customer portal, webhook, etc. | ||
# You can check out the Next.js Boilerplate Pro: https://nextjs-boilerplate.com/pro-saas-starter-kit | ||
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live | ||
# Use Stripe test mode price id or production price id | ||
BILLING_PLAN_ENV=prod | ||
|
||
######## [BEGIN] SENSITIVE DATA ######## For security reason, don't update the following variables (secret key) directly in this file. | ||
######## Please create a new file named `.env.production.local`, all environment files ending with `.local` won't be tracked by Git. | ||
######## After creating the file, you can add the following variables. | ||
# Database | ||
# Using an incorrect DATABASE_URL value, Next.js build will timeout and you will get the following error: "because it took more than 60 seconds" | ||
# DATABASE_URL=postgresql://postgres@localhost:5432/postgres | ||
|
||
# Stripe | ||
STRIPE_SECRET_KEY=your_stripe_secret_key | ||
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret | ||
|
||
# Error monitoring | ||
# SENTRY_AUTH_TOKEN= | ||
|
||
# Logging ingestion | ||
# LOGTAIL_SOURCE_TOKEN= | ||
######## [END] SENSITIVE DATA |
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,3 +1,6 @@ | ||
github: ixartz | ||
custom: | ||
["https://donate.stripe.com/7sI5m5146ehfddm7tj", "https://nextlessjs.com"] | ||
[ | ||
"https://nextjs-boilerplate.com/pro-saas-starter-kit", | ||
"https://nextlessjs.com", | ||
] |
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 |
---|---|---|
|
@@ -49,6 +49,3 @@ local | |
|
||
# vercel | ||
.vercel | ||
|
||
# Sentry Config File | ||
.sentryclirc |
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import type { Config } from 'drizzle-kit'; | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
import { defineConfig } from 'drizzle-kit'; | ||
|
||
/** @type {import('drizzle-kit').Config} */ | ||
export default { | ||
export default defineConfig({ | ||
out: './migrations', | ||
schema: './src/models/Schema.ts', | ||
dialect: 'sqlite', | ||
driver: 'turso', | ||
dialect: 'postgresql', | ||
dbCredentials: { | ||
url: process.env.DATABASE_URL ?? '', | ||
authToken: process.env.DATABASE_AUTH_TOKEN ?? '', | ||
}, | ||
verbose: true, | ||
strict: true, | ||
} satisfies Config; | ||
}); |
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,21 +1,21 @@ | ||
CREATE TABLE `organization` ( | ||
`id` text PRIMARY KEY NOT NULL, | ||
`stripe_customer_id` text, | ||
`stripe_subscription_id` text, | ||
`stripe_subscription_price_id` text, | ||
`stripe_subscription_status` text, | ||
`stripe_subscription_current_period_end` integer, | ||
`created_at` integer DEFAULT (strftime('%s', 'now')), | ||
`updated_at` integer DEFAULT (strftime('%s', 'now')) | ||
CREATE TABLE IF NOT EXISTS "organization" ( | ||
"id" serial NOT NULL, | ||
"stripe_customer_id" text, | ||
"stripe_subscription_id" text, | ||
"stripe_subscription_price_id" text, | ||
"stripe_subscription_status" text, | ||
"stripe_subscription_current_period_end" integer, | ||
"updated_at" timestamp DEFAULT now() NOT NULL, | ||
"created_at" timestamp DEFAULT now() NOT NULL | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE `todo` ( | ||
`id` integer PRIMARY KEY NOT NULL, | ||
`owner_id` text NOT NULL, | ||
`title` text NOT NULL, | ||
`message` text NOT NULL, | ||
`created_at` integer DEFAULT (strftime('%s', 'now')), | ||
`updated_at` integer DEFAULT (strftime('%s', 'now')) | ||
CREATE TABLE IF NOT EXISTS "todo" ( | ||
"id" serial NOT NULL, | ||
"owner_id" text NOT NULL, | ||
"title" text NOT NULL, | ||
"message" text NOT NULL, | ||
"updated_at" timestamp DEFAULT now() NOT NULL, | ||
"created_at" timestamp DEFAULT now() NOT NULL | ||
); | ||
--> statement-breakpoint | ||
CREATE UNIQUE INDEX `stripe_customer_id_idx` ON `organization` (`stripe_customer_id`); | ||
CREATE UNIQUE INDEX IF NOT EXISTS "stripe_customer_id_idx" ON "organization" USING btree ("stripe_customer_id"); |
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
Oops, something went wrong.