-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove and refactor files according to my website
- Loading branch information
1 parent
27cec19
commit 4237366
Showing
30 changed files
with
60 additions
and
1,462 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,28 +1,3 @@ | ||
# FIXME: Configure environment variables for your project | ||
|
||
# For security reason, don't push secret key in your git repo. | ||
# Append .local to the environement files to prevent your secret key from being commited to Git. | ||
|
||
# Hosting | ||
# Replace by your domain name | ||
NEXT_PUBLIC_APP_URL=https://example.com | ||
|
||
# Database | ||
# Please use a working DATABASE_URL. Otherwise, Next.js build will timeout and you will get the following error: "because it took more than 60 seconds" | ||
# DATABASE_URL=libsql://[RANDOM-CHARS]-[DB-NAME]-[ORG-NAME].turso.io | ||
DATABASE_URL=file:next-js-boilerplate.db | ||
|
||
# Clerk authentication | ||
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_b3Blbi1zdGlua2J1Zy04LmNsZXJrLmFjY291bnRzLmRldiQ | ||
|
||
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in | ||
|
||
######## [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.local`, all environment files ending with `.local` won't be tracked by Git. | ||
######## After creating the file, you can add the following variables. | ||
CLERK_SECRET_KEY=your_clerk_secret_key | ||
|
||
# DATABASE_AUTH_TOKEN= | ||
|
||
# LOGTAIL_SOURCE_TOKEN= | ||
######## [END] SENSITIVE DATA | ||
NEXT_PUBLIC_APP_URL=https://resatyildiz.com |
This file was deleted.
Oops, something went wrong.
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,74 +1,26 @@ | ||
/* eslint-disable import/no-extraneous-dependencies, import/extensions */ | ||
import { withSentryConfig } from '@sentry/nextjs'; | ||
import './src/libs/Env.mjs'; | ||
import withBundleAnalyzer from '@next/bundle-analyzer'; | ||
import withNextIntl from 'next-intl/plugin'; | ||
|
||
const withNextIntlConfig = withNextIntl('./src/libs/i18n.ts'); | ||
|
||
const bundleAnalyzer = withBundleAnalyzer({ | ||
enabled: process.env.ANALYZE === 'true', | ||
}); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
export default withSentryConfig( | ||
bundleAnalyzer( | ||
withNextIntlConfig({ | ||
eslint: { | ||
dirs: ['.'], | ||
}, | ||
poweredByHeader: false, | ||
reactStrictMode: true, | ||
experimental: { | ||
// Related to Pino error with RSC: https://github.com/orgs/vercel/discussions/3150 | ||
serverComponentsExternalPackages: ['pino'], | ||
}, | ||
webpack: (config) => { | ||
// config.externals is needed to resolve the following errors: | ||
// Module not found: Can't resolve 'bufferutil' | ||
// Module not found: Can't resolve 'utf-8-validate' | ||
config.externals.push({ | ||
bufferutil: 'bufferutil', | ||
'utf-8-validate': 'utf-8-validate', | ||
}); | ||
|
||
return config; | ||
}, | ||
}), | ||
), | ||
{ | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options | ||
|
||
// Suppresses source map uploading logs during build | ||
silent: true, | ||
// FIXME: Add your Sentry organization and project names | ||
org: 'nextjs-boilerplate-org', | ||
project: 'nextjs-boilerplate', | ||
export default withNextIntlConfig({ | ||
eslint: { | ||
dirs: ['.'], | ||
}, | ||
{ | ||
// For all available options, see: | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ | ||
|
||
// Upload a larger set of source maps for prettier stack traces (increases build time) | ||
widenClientFileUpload: true, | ||
|
||
// Transpiles SDK to be compatible with IE11 (increases bundle size) | ||
transpileClientSDK: true, | ||
|
||
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load) | ||
tunnelRoute: '/monitoring', | ||
|
||
// Hides source maps from generated client bundles | ||
hideSourceMaps: true, | ||
|
||
// Automatically tree-shake Sentry logger statements to reduce bundle size | ||
disableLogger: true, | ||
|
||
// Enables automatic instrumentation of Vercel Cron Monitors. | ||
// See the following for more information: | ||
// https://docs.sentry.io/product/crons/ | ||
// https://vercel.com/docs/cron-jobs | ||
automaticVercelMonitors: true, | ||
poweredByHeader: false, | ||
reactStrictMode: true, | ||
experimental: { | ||
// Related to Pino error with RSC: https://github.com/orgs/vercel/discussions/3150 | ||
serverComponentsExternalPackages: ['pino'], | ||
}, | ||
webpack: (config) => { | ||
// config.externals is needed to resolve the following errors: | ||
// Module not found: Can't resolve 'bufferutil' | ||
// Module not found: Can't resolve 'utf-8-validate' | ||
config.externals.push({ | ||
bufferutil: 'bufferutil', | ||
'utf-8-validate': 'utf-8-validate', | ||
}); | ||
|
||
return 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/app/[locale]/(auth)/(center)/sign-in/[[...sign-in]]/page.tsx
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/app/[locale]/(auth)/(center)/sign-up/[[...sign-up]]/page.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.