- app/hooks/useStoreOwnership.ts: the old redirect logic sent owners to / the moment useMyStores briefly resolved to []. That empty array came from useMyStores's dead `if (!token) return []` inside the queryFn, so any transient auth blip left the store page thinking the user has no stores. Now compares usernames case-insensitively, only redirects while the query is settled (!isLoading && !isFetching && !isError), and never bounces to home on empty — worst case the seller sees an empty dashboard rather than a silent kick-out. - app/requestHandler/use-seller-hooks.ts: removed the unreachable `if (!token) return []` in useMyStores and added the token to the queryKey so a login switch stops serving the previous user's cached list. - app/routes/store.$storeId._index.tsx: mount StorePushPromptCard at the top of the store dashboard. - app/routes/store.$storeId.tsx: sidebar "پیامها" badge reads badges.sellerChat[storeId] (per-store) instead of the buyer-side badges.chat, matching the badge-serializer split. Co-Authored-By: Claude Opus 4.7 <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.