feat: order revision, rial wage from variant, product tags; drop user-app-v2
Admin order edit with category chips and timeline; customer checkout charges variant rialWage; product tags; retire the unused user-app-v2 tree. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,11 +67,14 @@ export default defineConfig(({ mode }) => {
|
||||
// stuck dev server is obvious rather than moving to a random port.
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api': `http://localhost:${apiPort}`,
|
||||
// 127.0.0.1, not localhost: on Windows localhost often prefers ::1, and
|
||||
// another process can bind only IPv6 :3000 while our API is on IPv4 —
|
||||
// the proxy then hits the wrong app and every /api call 404s.
|
||||
'/api': `http://127.0.0.1:${apiPort}`,
|
||||
// Uploaded files (ProductImage.url etc.) are served by the API's own
|
||||
// static handler, not this dev server — without this they 404 in dev
|
||||
// even though production nginx (nginx.conf) already proxies them.
|
||||
'/uploads': `http://localhost:${apiPort}`,
|
||||
'/uploads': `http://127.0.0.1:${apiPort}`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user