fix: Fix PostCSS config and Dockerfile

1. Rename postcss.config.js to postcss.config.cjs
   - Fixes CommonJS syntax in ES module project
   - Allows build to complete successfully

2. Remove --production flag from Dockerfile
   - Install ALL dependencies including sharp
   - Sharp required for Astro image optimization
   - Fixes sharp missing error

Both fixes enable successful Docker build and favicon to work.
This commit is contained in:
Kunthawat Greethong
2026-03-03 14:51:29 +07:00
parent c802279cf9
commit 6b974073cb
10381 changed files with 4018 additions and 1519018 deletions

View File

@@ -1,47 +1,16 @@
{
"name": "dealplustech",
"version": "1.0.0",
"private": true,
"name": "dealplustech-astro",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"axios": "^1.13.5",
"cheerio": "^1.2.0",
"clsx": "^2.1.1",
"gray-matter": "^4.0.3",
"next": "14.2.3",
"playwright": "^1.58.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"remark-html": "^16.0.1",
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.3",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
},
"description": "Complete redesign of dealplustech.co.th website built with Next.js 14, TypeScript, and Tailwind CSS.",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://git.moreminimore.com/kunthawat/dealplustech.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs"
"@tailwindcss/vite": "^4.2.1",
"astro": "^5.17.1",
"tailwindcss": "^4.2.1"
}
}