Replies: 2 comments 1 reply
|
I edit the config to this, and the Vit server starts displaying WordPress pages, but it doesn't track file changes or recompile the CSS. Changes are only made using npm run build. `export default defineConfig(({ command }) => { });` |
|
In this setup, the common fix is:
Example env for dev: CHOKIDAR_USEPOLLING=1
CHOKIDAR_INTERVAL=250
WATCHPACK_POLLING=trueAlso keep Vite reachable from containerized WP:
404 on If this solved it, please mark the answer so others can find it faster. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My server is running at the address in the Docker container:
http://test.local . I changed origin:'http://test.local' in the config.
I run
npm run devon the host and it says it's started.VITE v6.3.3 ready in 246 ms
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
➜ press h + enter to show help
I navigate to http://localhost:3000/ and get HTTP ERROR 404
All reactions