QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
7 stars 1 forks source link

Enable prerendering #1162

Open Allcharles opened 3 years ago

Allcharles commented 3 years ago

Currently prerendering of the SSR files is broken for the website, however making it functional would help SEO performance and should be possible. Currently this is broken because we need to read the configuration file for the instance before building. During SSR we perform this step through the express server, however a different solution is needed for prerending to work. The following guide seems promising: https://www.thirdrocktechkno.com/blog/prerendering-in-angular-9/

atruskie commented 2 years ago

I don't see how we could achieve this using a dynamic configuration,

The later is probably ideal: in the docker file we can change the entrypoint script to start pre-rendering while SSR is running.