🎉 First commit !!!
This commit is contained in:
23
frontend/vite.config.ts
Normal file
23
frontend/vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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',
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user