Skip to content

Commit

Permalink
fix: issue with install.sh not being deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 22, 2024
1 parent fd14964 commit 44578bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
<noscript>Your browser does not support JavaScript!</noscript>
<div id="root"></div>

<!-- This forces vite to copy this to the dist folder -->
<a style="display: none" href="./install.sh"></a>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"tailwindcss": "^3.4.1",
"vite": "^5.1.5",
"vite-plugin-sitemap": "^0.5.3",
"vite-plugin-static-copy": "^1.0.1",
"vitest": "^1.3.1"
}
}
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import react from '@vitejs/plugin-react';
import Sitemap from 'vite-plugin-sitemap';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import path from 'path';
import { defineConfig } from 'vitest/config';
import { getAppRoutes, getAppsList } from './src/service/protontweaks';
import { getAppRoutes } from './src/service/protontweaks';

// https://vitejs.dev/config/
export default defineConfig(async () => {
Expand All @@ -29,6 +30,14 @@ export default defineConfig(async () => {
hostname: 'https://protontweaks.com',
dynamicRoutes: process.env.NODE_ENV === 'production' ? await getAppRoutes() : [],
}),
viteStaticCopy({
targets: [
{
src: path.resolve(__dirname, './install.sh'),
dest: '.',
},
],
}),
],
};
});

0 comments on commit 44578bd

Please sign in to comment.