24 lines
522 B
TypeScript
24 lines
522 B
TypeScript
import { defineConfig } from 'vite';
|
|
import solidPlugin from 'vite-plugin-solid';
|
|
import basicSsl from '@vitejs/plugin-basic-ssl'
|
|
|
|
export default defineConfig({
|
|
plugins: [solidPlugin(), basicSsl()],
|
|
server: {
|
|
port: 3000,
|
|
base: '/widget',
|
|
proxy: {
|
|
'/widget/.*': {
|
|
target: 'https://localhost:3000/',
|
|
rewrite: (path) => {
|
|
console.error("PATH: ", path);
|
|
return path.replace(/\/widget/, '#');
|
|
},
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
});
|