Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GH_ACCESS_TOKEN=---gh_access_token---
GOOGLE_SITE_VERIFICATION=---example-value---
GOOGLE_ANALYTICS=---example-value---
YANDEX_VERIFICATION=---example-value---
EMAIL_PROVIDER="resend"
EMAIL_PROVIDER=provider_name
RESEND_API_KEY=---resend_api_key---
RESEND_AUDIENCE_ID=---example-value---
RESEND_FROM_EMAIL=noreply@example.com
Expand Down
17 changes: 10 additions & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ run_command() {
return 1
fi
else
echo -e "${RED}❌ yarn, pnpm veya npm bulunamadı${NC}"
echo -e "${RED}❌ yarn, pnpm or npm not found${NC}"
return 1
fi

echo -e "${GREEN}✅ $command başarıyla tamamlandı${NC}"
echo -e "${GREEN}✅ $command successfully completed${NC}"
return 0
}

Expand Down Expand Up @@ -154,26 +154,29 @@ fi

echo -e "\n${YELLOW}🔒 Sanitizing .env file before commit...${NC}"

# .env dosyası var mı kontrol et
# Check if .env file exists
if [ -f .env ]; then
echo -e "${BLUE}📝 Creating/updating .env.example with sanitized values...${NC}"

# Farklı değişken türleri için özel örnek değerler
# Specific example values for different variable types
cat .env | while IFS='=' read -r key value; do
# Boş satırları atla
# Skip empty lines
if [ -z "$key" ]; then
echo ""
continue
fi

# Yorum satırlarını koru
# Preserve comment lines
if echo "$key" | grep -q '^#'; then
echo "$key"
continue
fi

# Değişken adına göre özel örnek değerler
# Specific example values based on variable name
case "$key" in
*PROVIDER)
echo "${key}=provider_name"
;;
*API_KEY*|*SECRET*|*TOKEN*|*PASSWORD*)
echo "${key}=---$(echo ${key} | tr '[:upper:]' '[:lower:]')---"
;;
Expand Down
26 changes: 0 additions & 26 deletions CHANGELOG.md

This file was deleted.

4 changes: 3 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const eslintConfig = [
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
],
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/no-misused-promises': process.env.CI ? 'error' : 'off',
'@typescript-eslint/no-misused-promises': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'prefer-const': 'error',
'prettier/prettier': [
'error',
Expand Down
4 changes: 1 addition & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const withNextIntl = createNextIntlPlugin({

const config: NextConfig = {
trailingSlash: true,
typedRoutes: true,
images: {
remotePatterns: [
{
Expand All @@ -20,9 +21,6 @@ const config: NextConfig = {
}
]
},
eslint: {
ignoreDuringBuilds: true
},
async headers() {
return [
{
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report",
"doppler:upload": "doppler secrets upload .env",
"env:sanitize": "echo '🔒 Sanitizing .env file...' && if [ -f .env ]; then cat .env | while IFS='=' read -r key value; do if [ -z \"$key\" ]; then echo \"\"; continue; fi; if echo \"$key\" | grep -q '^#'; then echo \"$key\"; continue; fi; case \"$key\" in *API_KEY*|*SECRET*|*TOKEN*|*PASSWORD*) echo \"${key}=---$(echo ${key} | tr '[:upper:]' '[:lower:]')---\" ;; *URL*|*ENDPOINT*) echo \"${key}=https://example.com/api\" ;; *PORT*) echo \"${key}=3000\" ;; *DATABASE*|*DB*) echo \"${key}=postgresql://user:password@localhost:5432/database\" ;; *EMAIL*) echo \"${key}=noreply@example.com\" ;; *DOMAIN*|*HOST*) echo \"${key}=localhost\" ;; *DEBUG*|*LOG*|*VERBOSE*) echo \"${key}=false\" ;; *ENV*|*NODE_ENV*) echo \"${key}=development\" ;; *) echo \"${key}=---example-value---\" ;; esac; done > .env.example && echo '✅ .env.example created/updated'; else echo '⚠️ .env file not found'; fi"
"doppler:upload": "doppler secrets upload .env"
},
"dependencies": {
"@auth/prisma-adapter": "^2.11.0",
Expand Down Expand Up @@ -133,7 +132,7 @@
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/canvas-confetti": "^1.9.0",
"@types/node": "^24.7.1",
"@types/node": "^24.7.2",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.1",
"@types/rtl-detect": "^1.0.3",
Expand Down
Loading