Implement Luxsin audio API integration: Add proxy configuration in Vite for CORS handling, enhance luxsinApi with brand and model fetching functions, and update EQPage to support audio catalog browsing and searching. Introduce new state management for catalog brands and models.
This commit is contained in:
@@ -231,6 +231,14 @@ export default defineConfig({
|
||||
port: 3000,
|
||||
strictPort: false, // Will find next available port if 3000 is busy
|
||||
host: true,
|
||||
// Browser requests with Origin are rejected (403) by the cloud API; proxy in dev avoids CORS/WAF.
|
||||
proxy: {
|
||||
"/luxsin-audio-api": {
|
||||
target: "https://api.luxsin.com.cn",
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/luxsin-audio-api/, "/audio"),
|
||||
},
|
||||
},
|
||||
allowedHosts: [
|
||||
".manuspre.computer",
|
||||
".manus.computer",
|
||||
|
||||
Reference in New Issue
Block a user