roxiness/routify-starter

how to build to a pure SPA?

Closed this issue · 2 comments

hi,
sorry for bother you guys again, as I am a bit confussed, i have coded an app base on this start template, and now i want to build and export to a Single Page App, which everything works at client side.

i walk through the documents, and still don't find out how to build to spa, looks like i can only build to SSR or SSG?

thanks for help!

Hi Artsman. Routify doesn't do any SSR itself.SSR is solely handled on your server. If you're using a service like Vercel or Netlify, you can use our serverless functions for SSR or you can omit them and have a pure SPA.

As for SSG, you can disable that by removing build:static from your package.json scripts.

I hope that helps you in the right direction. 🙂

hi @jakobrosenberg

thanks for reply, i got it now, i found below in package.json
"build:app": "routify -b && rollup -c",
this will build a SPA.

by the way, the reason i got cofussed is because i use the tailwindcss start template, which its package.json not as the origin start template.

thanks.