📄 production optimizations

This commit is contained in:
RJ
2025-12-02 12:39:11 +02:00
committed by Rares J
parent 7dca1de1aa
commit 6f7f0c6960
20 changed files with 1142 additions and 155 deletions

View File

@@ -11,7 +11,14 @@
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
"validate-posts": "node scripts/validate-posts.js"
"validate-posts": "node scripts/validate-posts.js",
"build:production": "NODE_ENV=production npm run build",
"validate:env": "node -e \"require('./lib/env-validation').validateEnvironment()\"",
"docker:build": "docker build -t mypage:latest -f Dockerfile.nextjs .",
"docker:run": "docker run -p 3030:3030 --env-file .env.production mypage:latest",
"analyze": "ANALYZE=true npm run build",
"analyze:server": "BUNDLE_ANALYZE=server npm run build",
"analyze:browser": "BUNDLE_ANALYZE=browser npm run build"
},
"repository": {
"type": "git",
@@ -25,7 +32,6 @@
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.10.0",
"@types/react": "^19.2.2",
"@types/react-syntax-highlighter": "^15.5.13",
"autoprefixer": "^10.4.21",
"gray-matter": "^4.0.3",
"next": "^16.0.1",
@@ -34,11 +40,11 @@
"react": "^19.2.0",
"react-dom": "^19.2.0",
"react-markdown": "^10.1.0",
"react-syntax-highlighter": "^16.1.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"sharp": "^0.34.5",
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"unist-util-visit": "^5.0.0"
@@ -46,6 +52,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.39.1",
"@next/bundle-analyzer": "^16.0.3",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@typescript-eslint/parser": "^8.46.4",
"eslint": "^9.39.1",