-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Thanks for this browser-sync example. :-) It works really well. I like it!
I added that as an additional ddev service
services:
t3docs:
container_name: "ddev-${DDEV_SITENAME}-t3docs"
image: ghcr.io/garvinhicking/typo3-documentation-browsersync:latest
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: ${DDEV_APPROOT}
restart: "no"
ports:
- "16108:5173"
environment:
- VIRTUAL_HOST=${DDEV_HOSTNAME}
volumes:
- "${DDEV_APPROOT}/Documentation:/project/Documentation"
- "${DDEV_APPROOT}/Documentation-GENERATED-temp:/project/Documentation-GENERATED-temp"
- ".:/mnt/ddev_config"
Calling the docs via http://localhost:16108/ works fine. If I call it with DDEV_SITENAME, I get the following error:
Blocked request. This host ("powermail-pro.ddev.site") is not allowed.
To allow this host, add "powermail-pro.ddev.site" to `server.allowedHosts` in vite.config.js.
Would it be possible to allow the DDEV_HOSTNAME there too. Then it would be more clear, in which context somebody is using it
(... and hopefully, the port does not have to be changed for every project. I will figure it out with Randy at the T3CRR).
garvinhicking
Metadata
Metadata
Assignees
Labels
No labels