mydea / ember-prerender

Prerender Ember apps with Puppeteer.
4 stars 0 forks source link

How to handle `publicAssetURL` for embroider/webpack? #117

Open evoactivity opened 1 year ago

evoactivity commented 1 year ago

When building for production my assets have a CDN url prepended, as part of the deploy pipeline prerendering happens directly after building, meaning the urls for the assets 404 in the prerender step because they are not uploaded to the CDN yet.

I guess I would need more control over run order. I need the build to happen, then upload the assets to S3, then prerender, then upload prerendered indexes to redis.

Right now running the deploy twice makes it work.

mydea commented 1 year ago

yeah, I think this is gonna be hard to avoid 🤔 probably I would:

  1. Deploy without prerender
  2. Deploy again with prerender

If anybody has another idea to handle this more gracefully, happy to hear ideas!