Single-product page showed basePrice with no discount while list tiles showed the cheapest variant's discounted price. Cause: the detail view defaulted selectedColor/selectedSize to the first in-stock color and the first in-stock size independently — a combo that often isn't a real variant, so no variant matched and it fell back to basePrice / no sale. - ProductDetailView: derive a `defaultVariant` (cheapest in-stock variant by final price, == the tile's min/discount price) and use it for the initial selection, the initial displayed price, and the fallback when no exact color/size combo is matched. A shared `pricingOf` helper applies the same discount rule everywhere. Detail price now matches the tile. - use-home-hooks: drop staleTime 5m -> 60s on the For You / discounts / top-sellers feeds so price/discount edits show up promptly in lists. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| app | ||
| docs | ||
| k8s | ||
| public | ||
| scripts | ||
| src/api/types | ||
| .dockerignore | ||
| .env.development | ||
| .env.example | ||
| .env.production | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| bun.lock | ||
| components.json | ||
| DEPLOYMENT.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| generate-types.ps1 | ||
| generate-types.sh | ||
| openapi-generator-cli.jar | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||
Welcome to Remix - yay!
Development
Run the dev server:
npm run dev
Deployment
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
DIY
If you're familiar with deploying Node applications, the built-in Remix app server is production-ready.
Make sure to deploy the output of npm run build
build/serverbuild/client
Styling
This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever css framework you prefer. See the Vite docs on css for more information.