-
Notifications
You must be signed in to change notification settings - Fork 7
Fails when --public-url is set #7
Comments
@ABuffSeagull what do you think the likelihood of getting this working is? I'm not really sure it's possible without doing some crazy hacks. One idea I had would be running a local server and serving the That should work but it's pretty messy. Do you have any better ideas? |
Actually that would then break if they're making any requests to e.g I'm starting to think there just isn't a solution to this. If you want local prerendering you need to use relative URLs. |
I will have to admit, it took me quite a while to really understand what you're talking about 😆. But yeah, I don't think there's a way you can have both a dynamic request at prerender time, and |
Yeah I think it's probably best to close this issue. Unfortunately absolute URLs are required for og:image tags. I don't think you can specify an absolute URL for only certain assets with parcel. I could write a separate plugin that parses HTML for og:image tags and sets an absolute source but that's not a great solution. |
@ABuffSeagull fixed this rather crudely with this plugin: https://github.com/lukechilds/parcel-plugin-ogimage |
I mean hey, whatever gets the job done 😄 |
If
--public-url https://example.com
is set so URLs use absolute paths (a requirement for og:image) then pre-rendering can't load any resources.Or if the sites already published it will load the (old) live resources not the local resources.
The text was updated successfully, but these errors were encountered: