diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 5162343612a1..bcb24bbcfd1a 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -440,10 +440,13 @@ jobs: if: matrix.demo run: | # Delete the old build. - rm -f *.js *.wasm *.html + rm -fr * # Copy the fresh build into this folder. - cp -f ../web/packages/demo/dist/* . + cp -fr ../web/packages/demo/dist/* . + + # Restore our custom swfs + git restore swfs swfs.json # Create git commit. Amend previous commit to avoid daily commit spam. git config user.name "RuffleBuild" diff --git a/web/packages/demo/vite.config.ts b/web/packages/demo/vite.config.ts index 5a33944a9b41..4499bd2d2843 100644 --- a/web/packages/demo/vite.config.ts +++ b/web/packages/demo/vite.config.ts @@ -1,7 +1,8 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react()], -}) + plugins: [react()], + base: "", +});