https://github.com/gustavocadev/qwik-vercel-serverless-without-edge
Example Qwik City + Vercel serveless using express (Not using Vercel edge)
https://github.com/gustavocadev/qwik-vercel-serverless-without-edge
express nodejs qwik qwik-city serverless vercel
Last synced: 3 months ago
JSON representation
Example Qwik City + Vercel serveless using express (Not using Vercel edge)
- Host: GitHub
- URL: https://github.com/gustavocadev/qwik-vercel-serverless-without-edge
- Owner: gustavocadev
- Created: 2024-03-09T03:03:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T03:38:43.000Z (over 2 years ago)
- Last Synced: 2026-01-13T21:18:48.967Z (6 months ago)
- Topics: express, nodejs, qwik, qwik-city, serverless, vercel
- Language: TypeScript
- Homepage: https://qwik-vercel-serverless-without-edge.vercel.app
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Qwik + Vercel without the Edge
## Steps to deploy Qwik on Vercel without the Edge
1. Add Express adapter to your Qwik app
```bash
pnpm qwik add express
```
2. Create `api/index.js` file to the root of your project and add the following code:
```javascript
export * from '../server/entry.express.js';
```
3. Add `vercel.json` file to the root of your project with the following content:
```json
{
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
],
"headers": [
{
"source": "/build/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, s-maxage=31536000, immutable"
}
]
}
]
}
```