Mercurial > code > home > repos > video
comparison vite.config.ts @ 43:a7b644dc1b4b
ridiculous fix for vite not proxying urls with . in them
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 Dec 2024 00:58:46 -0800 |
parents | f0a773084a2e |
children |
comparison
equal
deleted
inserted
replaced
42:1d2c65d260d1 | 43:a7b644dc1b4b |
---|---|
1 import { defineConfig } from "vite"; | 1 import { defineConfig } from "vite"; |
2 import pluginRewriteAll from "vite-plugin-rewrite-all"; | |
2 | 3 |
3 export default defineConfig({ | 4 export default defineConfig({ |
4 base: "/video/", | 5 base: "/video/", |
5 server: { | 6 server: { |
6 host: "0.0.0.0", | 7 host: "0.0.0.0", |
25 }, | 26 }, |
26 }, | 27 }, |
27 define: { | 28 define: { |
28 global: {}, | 29 global: {}, |
29 }, | 30 }, |
31 plugins: [pluginRewriteAll()], | |
30 }); | 32 }); |