Mercurial > code > home > repos > video
changeset 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 | 1d2c65d260d1 |
children | 239a83d46d48 |
files | package.json pnpm-lock.yaml vite.config.ts |
diffstat | 3 files changed, 25 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/package.json Thu Dec 05 21:34:00 2024 -0800 +++ b/package.json Fri Dec 06 00:58:46 2024 -0800 @@ -12,7 +12,8 @@ "lit": "^3.2.0", "serve-index": "^1.9.1", "shaka-video-element": "^0.6.6", - "vite": "4.3.9" + "vite": "4.3.9", + "vite-plugin-rewrite-all": "1.0.1" }, "devDependencies": { "@types/jest": "^29.5.12",
--- a/pnpm-lock.yaml Thu Dec 05 21:34:00 2024 -0800 +++ b/pnpm-lock.yaml Fri Dec 06 00:58:46 2024 -0800 @@ -29,6 +29,9 @@ vite: specifier: 4.3.9 version: 4.3.9(@types/node@22.5.0)(stylus@0.63.0) + vite-plugin-rewrite-all: + specifier: 1.0.1 + version: 1.0.1(vite@4.3.9(@types/node@22.5.0)(stylus@0.63.0)) devDependencies: '@types/jest': specifier: ^29.5.12 @@ -1156,6 +1159,10 @@ resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==} engines: {'0': node >= 0.8} + connect-history-api-fallback@1.6.0: + resolution: {integrity: sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==} + engines: {node: '>=0.8'} + console-browserify@1.2.0: resolution: {integrity: sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==} @@ -2999,6 +3006,13 @@ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + vite-plugin-rewrite-all@1.0.1: + resolution: {integrity: sha512-W0DAchC8ynuQH0lYLIu5/5+JGfYlUTRD8GGNtHFXRJX4FzzB9MajtqHBp26zq/ly9sDt5BqrfdT08rv3RbB0LQ==} + engines: {node: '>=12.0.0'} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. + peerDependencies: + vite: ^2.0.0 || ^3.0.0 || ^4.0.0 + vite@4.3.9: resolution: {integrity: sha512-qsTNZjO9NoJNW7KnOrgYwczm0WctJ8m/yqYAMAK9Lxt4SoySUfS5S8ia9K7JHpa3KEeMfyF8LoJ3c5NeBJy6pg==} engines: {node: ^14.18.0 || >=16.0.0} @@ -4742,6 +4756,8 @@ readable-stream: 2.3.8 typedarray: 0.0.6 + connect-history-api-fallback@1.6.0: {} + console-browserify@1.2.0: {} constants-browserify@1.0.0: {} @@ -6955,6 +6971,11 @@ vary@1.1.2: {} + vite-plugin-rewrite-all@1.0.1(vite@4.3.9(@types/node@22.5.0)(stylus@0.63.0)): + dependencies: + connect-history-api-fallback: 1.6.0 + vite: 4.3.9(@types/node@22.5.0)(stylus@0.63.0) + vite@4.3.9(@types/node@22.5.0)(stylus@0.63.0): dependencies: esbuild: 0.17.19
--- a/vite.config.ts Thu Dec 05 21:34:00 2024 -0800 +++ b/vite.config.ts Fri Dec 06 00:58:46 2024 -0800 @@ -1,4 +1,5 @@ import { defineConfig } from "vite"; +import pluginRewriteAll from "vite-plugin-rewrite-all"; export default defineConfig({ base: "/video/", @@ -27,4 +28,5 @@ define: { global: {}, }, + plugins: [pluginRewriteAll()], });