{"id":19734197,"url":"https://github.com/dongwa/vercel-quasar","last_synced_at":"2025-04-30T04:30:35.404Z","repository":{"id":39746567,"uuid":"488608944","full_name":"dongwa/vercel-quasar","owner":"dongwa","description":"deploy quasar with ssr mode in vercel","archived":false,"fork":false,"pushed_at":"2024-06-21T11:30:33.000Z","size":410,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T16:52:05.275Z","etag":null,"topics":["deploy","quasar","quasar-framework","ssr","vercel"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dongwa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-04T13:54:53.000Z","updated_at":"2024-07-06T17:31:47.000Z","dependencies_parsed_at":"2024-06-22T04:15:09.646Z","dependency_job_id":"5310f4eb-08e5-4b6d-b0fc-0c8cc9a1438e","html_url":"https://github.com/dongwa/vercel-quasar","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.08695652173913049,"last_synced_commit":"a640d690483924fd973e1a5c7f5635406d0191a7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongwa%2Fvercel-quasar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongwa%2Fvercel-quasar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongwa%2Fvercel-quasar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dongwa%2Fvercel-quasar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dongwa","download_url":"https://codeload.github.com/dongwa/vercel-quasar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224197673,"owners_count":17271996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deploy","quasar","quasar-framework","ssr","vercel"],"created_at":"2024-11-12T00:35:55.785Z","updated_at":"2025-04-30T04:30:35.397Z","avatar_url":"https://github.com/dongwa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vercel-quasar\r\n\r\nVercel builder for Quasar with SSR enabled\r\n\r\nHelp you to deploy [Quasar](https://quasar.dev) application on [Vercel](https://vercel.com) in SSR mode\r\n\r\n# usage\r\n\r\n## 1. change the listen function in your `src-ssr/server.js|ts` file\r\n\r\n- return { handler: ssrHandler }\r\n\r\n```js\r\nexport const listen = defineSsrListen(({ app, devHttpsApp, port }) =\u003e {\r\n  const server = devHttpsApp || app;\r\n  if (process.env.DEV) {\r\n    return server.listen(port, () =\u003e {\r\n      if (process.env.PROD) {\r\n        console.log('Server listening at port ' + port);\r\n      }\r\n    });\r\n  } else {\r\n    return {\r\n      handler: server,\r\n    };\r\n  }\r\n});\r\n```\r\n\r\n## 2. Configure `vercel-quasar` as builder in `vercel.json`\r\n\r\n### Add a `vercel.json` file to your project root path\r\n\r\n```json\r\n{\r\n  \"version\": 2,\r\n  \"builds\": [\r\n    {\r\n      \"src\": \"package.json\",\r\n      \"use\": \"vercel-quasar@2.0.0-beta.3\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n## 3. Custom build command （Optional!）\r\n\r\n### The default build command is `npx quasar build -m ssr`,if you want to use custom it,add a `build:ssr` or `build` script to your package.json\r\n\r\n\u003e Note that the priority of `build:ssr` is higher than that of `build`. If `build:ssr` exists, command `build` will not be executed in deploy.\r\n\r\n- example\r\n\r\n###\r\n\r\n```json\r\n{\r\n  \"name\": \"quasar-example\",\r\n  \"version\": \"1.0.0\",\r\n  \"productName\": \"quasar-example\",\r\n  \"scripts\": {\r\n    \"dev\": \"quasar dev\",\r\n    \"dev:ssr\": \"quasar dev -m ssr\",\r\n    \"build:ssr\": \"quasar build -m ssr\"\r\n  },\r\n  \"dependencies\": {},\r\n  \"devDependencies\": {}\r\n}\r\n```\r\n\r\n# demo\r\n\r\nHere is a demo repo\r\nhttps://github.com/dongwa/quasar-ssr-vercel-demo\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongwa%2Fvercel-quasar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdongwa%2Fvercel-quasar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdongwa%2Fvercel-quasar/lists"}