Initial commit of the Mado Motor public website.

This commit is contained in:
2026-09-03 23:40:37 +03:30
commit 95733d99d4
192 changed files with 7200 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const apiOrigin = 'http://api.madomotor.com:3001'
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 5174,
strictPort: true,
allowedHosts: [
'localhost',
'127.0.0.1',
'madomotor.com',
'www.madomotor.com',
'madomotor.ir',
'www.madomotor.ir',
],
proxy: {
'/sitemap.xml': {
target: apiOrigin,
changeOrigin: true,
rewrite: () => '/api/v1/sitemap.xml',
},
},
},
preview: {
proxy: {
'/sitemap.xml': {
target: apiOrigin,
changeOrigin: true,
rewrite: () => '/api/v1/sitemap.xml',
},
},
},
})