- Issue created by @kozo
- πΊπΈUnited States mortona2k Seattle
The ddev docs look correct to me (I'm using lando). What issue do you have?
I have same problem with ddev and vite
https://ddev.com/blog/working-with-vite-in-ddev/ddev npm run dev is running successfully in theme folder, but example-site.ddev.site:5173 shows 404 page not found
- πΊπΈUnited States mortona2k Seattle
For lando, this snippet proxies port 3000 in the container to node.mysite.lndo.site (I have vite running on 3000 internally, but the port doesn't matter):
proxy:
node:
- node.mysite.lndo.site:3000When I have an index.html file for vite, that's what appears at the node url. If I use an asset url, I get the code.
I never figured out how to proxy an internal port to an internal url with ddev.
Thanks for the answer. I didn't succeed to make vite module works in my theme. Maybe it is good idea to provide any simple starter theme with vite module.
I resolved my problem with this implementation https://github.com/almunnings/drupal-vite-bootstrap