krazkidd / lineup

Softball lineup editor made with Nuxt 3 (Vue.js 3)
https://lineup.app.xericode.net
GNU Affero General Public License v3.0
3 stars 2 forks source link

Improved build and deployment configuration #26

Closed krazkidd closed 8 months ago

krazkidd commented 8 months ago

Enable universal rendering mode (enable SSR). [I had thought that this required an app server but you can still elect to use static site generation (SSG) to pre-render HTML.)

This also allows deploying to different environments (GitHub and DigitalOcean) using an environment variable to set the base URL, which is required by GitHub.

Note that static images under /public may fail with this change when we deploy to GitHub. So a fix may follow. I couldn't find much documentation on using static assets.