Running dev script now does not work, can't connect to mongodb it seems
/docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
astroad-astro | 16:13:27 [ERROR] fetch failed
astroad-astro | Stack trace:
astroad-astro | at node:internal/deps/undici/undici:12502:13
astroad-astro | at async Module.getPosts (/base/src/utils/payload.ts:8:11)
astroad-astro | [...] See full stack trace in the browser, or rerun with --verbose.
astroad-astro | Caused by:
astroad-astro | getaddrinfo ENOTFOUND payload
astroad-astro | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
astroad-payload | /docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
Running dev script now does not work, can't connect to mongodb it seems
/docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
astroad-astro | 16:13:27 [ERROR] fetch failed
astroad-astro | Stack trace:
astroad-astro | at node:internal/deps/undici/undici:12502:13
astroad-astro | at async Module.getPosts (/base/src/utils/payload.ts:8:11)
astroad-astro | [...] See full stack trace in the browser, or rerun with --verbose.
astroad-astro | Caused by:
astroad-astro | getaddrinfo ENOTFOUND payload
astroad-astro | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
astroad-payload | /docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
Ah 😖 Looks like it's trying to run the -prod container locally still? Latest commit tries to fix it... can't test locally because of spooky network error tho
Ah 😖 Looks like it's trying to run the `-prod` container locally still? Latest commit tries to fix it... can't test locally because of spooky network error tho
Don't really know, I will have to learn more about how astro builds and optimizes images. In any case I think this one is a matter of configuration in astro
When running the dev script the image URL is constructed differently than the build script
**DEV**
`src="/_image?f=webp&w=150&h=150&ar=1&href=cow.gif"`
**PROD**
`src="/_astro/cow_ZPFrIy_NWQNh.webp"`
## Images exist in astro container
```
~/ws/an/astro-payload-test t-work [$!?] +3 -2 v20.12.2 20:55:40
❯ docker exec -it astroad-astro sh
/base # ls dist/
_astro/ favicon.svg fonts/ index.html not-found.png posts/
/base # ls dist/_astro/
2e0c0fe6-3b30-4916-a43a-28db66919652_text-1_8avHU.webp cow_ZPFrIy_Ziluap.webp
2e0c0fe6-3b30-4916-a43a-28db66919652_text-1_Z231D3x.webp index.DPWfh8uI.css
cow_ZPFrIy_NWQNh.webp page.CQPzDy5g.js
/base # ls dist/_astro/
2e0c0fe6-3b30-4916-a43a-28db66919652_text-1_8avHU.webp cow_ZPFrIy_Ziluap.webp
2e0c0fe6-3b30-4916-a43a-28db66919652_text-1_Z231D3x.webp index.DPWfh8uI.css
cow_ZPFrIy_NWQNh.webp page.CQPzDy5g.js
```
## In prod

## In dev

## In dev with corrected url

## But why is the url different?
Don't really know, I will have to learn more about how astro builds and optimizes images. In any case I think this one is a matter of configuration in astro
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Post images now working reliably for me, thumbnails still not, how about you?
Running dev script now does not work, can't connect to mongodb it seems
/docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
astroad-astro | 16:13:27 [ERROR] fetch failed
astroad-astro | Stack trace:
astroad-astro | at node:internal/deps/undici/undici:12502:13
astroad-astro | at async Module.getPosts (/base/src/utils/payload.ts:8:11)
astroad-astro | [...] See full stack trace in the browser, or rerun with --verbose.
astroad-astro | Caused by:
astroad-astro | getaddrinfo ENOTFOUND payload
astroad-astro | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
astroad-payload | /docker-entrypoint.sh: line 30: MONGODB_USER: unbound variable
Ah 😖 Looks like it's trying to run the
-prodcontainer locally still? Latest commit tries to fix it... can't test locally because of spooky network error thoWhen running the dev script the image URL is constructed differently than the build script
DEV
src="/_image?f=webp&w=150&h=150&ar=1&href=cow.gif"PROD
src="/_astro/cow_ZPFrIy_NWQNh.webp"Images exist in astro container
In prod
In dev
In dev with corrected url
But why is the url different?
Don't really know, I will have to learn more about how astro builds and optimizes images. In any case I think this one is a matter of configuration in astro