// 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/, ''), // }, // } // } //})