This is how to make Zeit Now work with Quasar
- Log into Zeit Now https://zeit.co/
- Create a project or import project from Github etc.
- Go into Build & Development Settings
If SPA mode
Add the following build command: quasar build
Add the following output directory if SPA: /dist/spa
If PWA mode
Add build command: quasar build --mode pwa
Add the following output directory: /dist/pwa
If SSR mode
Add build command: quasar build --mode ssr
Add the following output directory: /dist/ssr
If SSR + PWA mode
Add build command: quasar build --mode ssr & quasar build --mode pwa
Add the following output directory: /dist/ssr
Press save when done.
- That’s it! You may now try to deploy your project to Zeit Now, and it should work
In order to support SPA routing in the deployed app, consider adding now.json file in your root folder:
{
“routes”: [
{ “handle”: “filesystem” },
{ “src”: “/.*”, “dest”: “/index.html” }
]
}