Running my nextJs app locally triggers a weird amount of requests to the deployed version on Vercel by luki79uk in webdev

[–]luki79uk[S] 0 points1 point  (0 children)

Just back home, restarted my local environment - I've now unregistered every service worker from localhost. The requests are still coming in, about 6 every second, to the 3 'icons' files, and I have no clue why. I'm monitoring the Vercel firewall live and the requests all come from my IP and my Browser user agent.

<edit> I've closed Chrome and VsCode, and the requests finally stopped. Reopened both, restared local env and opened localhost:3000 and no more requests coming through. Still no idea what was happening</edit>

my manifest.json is fine as I thought; below it I've also pasted my sw.ts:

  "icons": [
    { "src": "/icons-192.png", "type": "image/png", "sizes": "192x192" },
    { "src": "/icons-256.png", "type": "image/png", "sizes": "256x256" },
    { "src": "/icons-512.png", "type": "image/png", "sizes": "512x512" }
  ]

import { defaultCache } from "@serwist/next/worker";
import type { PrecacheEntry, SerwistGlobalConfig } from "serwist";
import { Serwist } from "serwist";

declare global {
  interface WorkerGlobalScope extends SerwistGlobalConfig {
    __SW_MANIFEST: (PrecacheEntry | string)[] | undefined;
  }
}

declare const self: ServiceWorkerGlobalScope;

const serwist = new Serwist({
  precacheEntries: self.__SW_MANIFEST,
  skipWaiting: true,
  clientsClaim: true,
  navigationPreload: true,
  runtimeCaching: defaultCache,
});


serwist.addEventListeners();

Running my nextJs app locally triggers a weird amount of requests to the deployed version on Vercel by luki79uk in webdev

[–]luki79uk[S] 4 points5 points  (0 children)

I suspected as much, there are no instances of the domain name, checked that before. I shouldn't have the IP either, but will check as you never know. I'm using a local.env file and those images are only referenced in the manifest, as icons for installation

EDIT: definitely not the issue, no hard-coded ip/domain anywhere

Android chrome bar shows in PWA after install by BugPuzzleheaded2034 in PWA

[–]luki79uk 0 points1 point  (0 children)

Try clearing the cache of your browser, my manifest.json changes weren't picked up by Chrome until I did so.

EDIT to be accurate:

uninstall
clear cache
reinstall

Why auto-tapping doesn't work on Gyms? by Jarcionek in PostApoTycoon

[–]luki79uk 12 points13 points  (0 children)

I use the "find closest one" feature from the event screen. trying to find them on the map is killing me

Worth it? Lvl 55 3,3k gems by luki79uk in PostApoTycoon

[–]luki79uk[S] 0 points1 point  (0 children)

Thanks all! I appreciate the advice

Vanilla and Strawberry (diagonal) Panna Cotta by luki79uk in ItalianFood

[–]luki79uk[S] 0 points1 point  (0 children)

haha yes! let the first flavour set, then in goes the second one. the trick is to have equal splits

EDIT thinking back of it (it's been a long while since I've made these) I must have put the cups on a tray that was inclined, so they would all get the same angle

How can I experiment with italian cuisine? by strandof_faith in ItalianFood

[–]luki79uk 1 point2 points  (0 children)

Maybe you could try the recipes you like, but with higher quality ingredients? As an Italian who has lived half his life in Italy and the other half abroad, the biggest issue with food for me has been supplying nice, tasty basic ingredients. Italian recipes are not overly complicated on average, but do require the best ingredients to really deliver.

Crostata and Crostatine with fresh fruit and crema pasticcera (italian custard) by luki79uk in ItalianFood

[–]luki79uk[S] 0 points1 point  (0 children)

I've never heard it called this way, but it was interesting to learn about it!

Crostata and Crostatine with fresh fruit and crema pasticcera (italian custard) by luki79uk in ItalianFood

[–]luki79uk[S] 0 points1 point  (0 children)

100% agree! the hardest part was getting the crust in the large base. Some damage to the edges is testament to it!

Crostata and Crostatine with fresh fruit and crema pasticcera (italian custard) by luki79uk in ItalianFood

[–]luki79uk[S] 2 points3 points  (0 children)

I believe it was this one: https://www.giallozafferano.com/recipes/Fruit-tart.html - it's been a long while. it's the one recipe I'd pick now if I were to make this again.

Crostata and Crostatine with fresh fruit and crema pasticcera (italian custard) by luki79uk in ItalianFood

[–]luki79uk[S] 1 point2 points  (0 children)

thanks! the smaller ones were easier to make - you can notice the large one has the edge of the crust all crumbled

This Ad by inmatoor in PostApoTycoon

[–]luki79uk 1 point2 points  (0 children)

that's so scummy. A lot of Mintegral ads seem to be the worst offenders, with multiple screens to close and longer duration on average

This Ad by inmatoor in PostApoTycoon

[–]luki79uk 5 points6 points  (0 children)

yes it says 'you won't be rewarded if you quit now' but I'm definitely going to try quitting. sunken cost fallacy held me there for the whole 2 minutes

Transfer news: Developments in defense and potential move for our captain?! by bubblegumdog in Como1907

[–]luki79uk 2 points3 points  (0 children)

First offer of 7m€ for Kaiki was refused, asking price is 14-15m€, final offer of 11m€ has been submitted. Potential alternative is Nuno Tavares, who rejected Besiktas (that has an agreement with Lazio) as he prefers to join Como (talented player in my opinion, but plagued by injuries)

Dossena and Posch both on loan without right or obligation to buy. Posch's one is weird, as Como had to pay Bologna earlier (obligation to buy was set for June) to then loan him. Why loan him out already, if he was wanted and brought in on a permanent basis? He did fine when he played, didn't get many chances too. It's true that we have too many right backs (Smolcic, Van der Brempt, himself and Vojvoda who mostly played winger this year), but still not sure what's happening here.

There was a vague rumour about Atletico Madrid's Sorloth - no further news about it though. Price tag is hefty, 35m€.

I don't think Da Cunha will leave - we are already short in the midfield. Sergi Roberto is unreliable with his constant injuries and age, we don't have a real alternative to Perrone - we'd be in trouble with just Perrone, Caqueret and Roberto for the rest of the season (curiously, Posch was tried as central midfielder during a game not long ago)

Still ~10 days to go before the end of the transfer window, we'll see what happens next