How I deployed website on Vercel π―


π―πChromaCore: Chatbot Interface Wizard π
I have built a π€ Chatbot interface wizard providing a variety of themes for your chatbot and is live on Vercel.
I am happy to announce that the ChromaCore project is now live on Vercel! π
Here is the live preview: ChromaCore π
Visit the website and explore the themes you wish to purchase. π¨
Here is detailed repository for the same: chromacore π
How I deployed the website on Vercel: π οΈ
- Install Vercel CLI π»
npm install -g vercel
- Login to Vercel π
vercel login
Configure Deployment βοΈ
- Create a
vercel.json
file in your project root with the following configuration:
- Create a
{
"version": 2,
"builds": [
{
"src": "**/*.html",
"use": "@vercel/static"
},
{
"src": "**/*.css",
"use": "@vercel/static"
},
{
"src": "**/*.js",
"use": "@vercel/static"
},
{
"src": "**/*.png",
"use": "@vercel/static"
},
{
"src": "**/*.jpg",
"use": "@vercel/static"
},
{
"src": "**/*.jpeg",
"use": "@vercel/static"
},
{
"src": "**/*.gif",
"use": "@vercel/static"
},
{
"src": "**/*.svg",
"use": "@vercel/static"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/$1"
}
]
}
- Deploy to Production π
vercel --prod
Follow the Prompts π
Choose "Y" to set up and deploy β
Select your scope (personal or organization) π₯
Choose "N" for linking to existing project β
Enter your project name (e.g., "chromacore") βοΈ
Press Enter to use current directory β©οΈ
Choose "N" to not override settings β
Choose "Y" to deploy to production β
The configuration ensures: β
All theme directories are included in deployment π
All file types (HTML, CSS, JS, images) are handled correctly π
Directory structure is maintained ποΈ
Proper routing for theme directories π£οΈ
Your site will be available at: https://[your-project-name].vercel.app
π
Subscribe to my newsletter
Read articles from Rocky directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
