lifeto-shop/vite.config.ts
2025-06-20 00:41:10 -05:00

41 lines
892 B
TypeScript

// ignore the type error onthe next line
// @ts-ignore
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
// with options
'/lifeto': {
target: 'https://beta.lifeto.co/',
changeOrigin: true,
rewrite: path => path.replace(/^\/lifeto/, ''),
},
},
},
})
// https://vitejs.dev/config/
//export default defineConfig({
// plugins: [vue()],
// server: {
// proxy: {
// // with options
// '/lifeto': {
// target: "https://beta.lifeto.co/",
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/lifeto/, ''),
// },
// }
// }
//})