Skip to content

Commit

Permalink
change storage endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 9, 2025
1 parent d0e3a11 commit 74d0767
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
with:
access-key: ${{ secrets.BUNNY_API_KEY }}
directory-to-upload: "./apps/gui/dist"
storage-endpoint: "https://storage.bunnycdn.com"
storage-endpoint: "https://sg.storage.bunnycdn.com"
storage-zone-name: "nostr-watch"
storage-zone-password: ${{ secrets.BUNNY_STORAGE_ZONE_PASSWORD }}
concurrency: "50"
Expand Down
32 changes: 16 additions & 16 deletions apps/gui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default defineConfig(({ mode }) => {
}

return {
middlewareMode: true,
// middlewareMode: true,
build: {
minify: isProd? 'terser': false,
assetsInlineLimit: 0,
Expand Down Expand Up @@ -87,21 +87,21 @@ export default defineConfig(({ mode }) => {
},
},
plugins: [
{
name: 'simulate-latency',
configureServer(server) {
server.middlewares.use((req, res, next) => {
const latency = rng();
if (req.url.includes('components') || req.url.includes('stores')) {
setTimeout(next, latency);
} else if (req.url.includes('wasm')) {
setTimeout(next, latency*2)
} else {
next();
}
});
},
},
// {
// name: 'simulate-latency',
// configureServer(server) {
// server.middlewares.use((req, res, next) => {
// const latency = rng();
// if (req.url.includes('components') || req.url.includes('stores')) {
// setTimeout(next, latency);
// } else if (req.url.includes('wasm')) {
// setTimeout(next, latency*2)
// } else {
// next();
// }
// });
// },
// },
sveltekit(),
// patchSvelteSpeedometer(), // Add the patch plugin
// {
Expand Down

0 comments on commit 74d0767

Please sign in to comment.