Spyke

Posts

nextjs·Next.jsbygukkey

How to make my nextjs project hot reload (on save or change) without caching while running a dev build?

So currently the way I rerun my changes are either by deleting the .next folder or rerunning the npm run dev command because of nextjs' caching (even if I delete the cache on the browser the changes are not reflected). Is there a way to hot reload a nextjs project without using a 3rd party dependency but rather just a set of nextjs configs, just when running a dev build?

View original on programming.dev
python·Pythonbygukkey

Having problems over installing and running py2wasm

I am trying to follow this tutorial (Announcing py2wasm: A Python to Wasm compiler · Blog · Wasmer) and run py2wasm but I am getting this weird problem.

First is that I believe py2wasm might be just an executable like other pip packages I install, or a bat file. (I am fairly new to python and I just want to convert a python code to wasm). But when I head over to C:\Users\USER\AppData\Local\Programs\Python\Python312\Scripts where the pip packages are located, I can't seem to find any file related to py2wasm.

Running dir C:\Users\USER\AppData\Local\Programs\Python\Python312\Lib\site-packages\py2wasm* to check any related files about the py2wasm folder only leads to this

Directory: C:\Users\USER\AppData\Local\Programs\Python\Python312\Lib\site-packages

Mode LastWriteTime Length Name

---

d----- 04-10-2024 19:54 py2wasm-2.6.2.dist-info

Also, before you could ask yeah I could run other pip packages such as yt-dlp.

View original on programming.dev

You reached the end