File size: 1,308 Bytes
7418f3c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
```json
{
"version": 2,
"builds": [
{
"src": "index.html",
"use": "@vercel/static"
}
],
"routes": [
{
"src": "/",
"dest": "index.html"
},
{
"src": "/account",
"dest": "account.html"
},
{
"src": "/services",
"dest": "services.html"
},
{
"src": "/support",
"dest": "support.html"
},
{
"src": "/components/(.*)",
"dest": "components/$1"
},
{
"src": "/(.*)",
"dest": "/$1"
}
]
}
```
To deploy the website:
1. Create a free account on Vercel (https://vercel.com)
2. Install Vercel CLI by running:
```
npm install -g vercel
```
3. In your project directory, run:
```
vercel
```
4. Follow the prompts to deploy your project
The website will be live at a Vercel-provided URL (you can also connect a custom domain if you have one).
Alternatively, you can deploy to GitHub Pages by:
1. Create a new GitHub repository
2. Push all your files to the repository
3. Go to Settings > Pages
4. Select the main branch and click Save
5. Your site will be live at `https://[your-username].github.io/[repository-name]/`
The vercel.json configuration will ensure proper routing for all pages and components. The site is now ready for production deployment. |