Next.js Template
Get started with BubblaV in your Next.js application.Repository
github.com/bubblav-org/nextjs-templateFeatures
- Pre-configured BubblaV widget integration
- Environment variable setup
- TypeScript support
- Example usage components
Quick Start
Project Structure
Configuration
Add your website ID in.env.local:
Nuxt Template
Get started with BubblaV in your Nuxt application.Repository
github.com/bubblav-org/nuxt-templateFeatures
- Nuxt 3 compatible
- Auto-imports for BubblaV composables
- Environment variable configuration
- TypeScript support
Quick Start
Project Structure
Configuration
Add your website ID in.env:
Angular Template
Get started with BubblaV in your Angular application.Repository
github.com/bubblav-org/angular-templateFeatures
- Angular 21 with standalone components
- Tailwind CSS with CSS variable theming
- Dark/light theme toggle with localStorage persistence
- Pre-configured BubblaV widget integration
- TypeScript support
- Environment variable setup via
set-env.cjsscript
Quick Start
Project Structure
Configuration
Add your website ID in.env.local:
- The
set-env.cjsscript reads your.env.localfile and generatessrc/environments/environment.tsat build time - Run
npm run start- the script runs automatically before the dev server - For Vercel deployment, set
ANGULAR_PUBLIC_BUBBLAV_WEBSITE_IDin your project’s Environment Variables
Deploy to Vercel
Deploy your BubblaV-powered application to Vercel in a few clicks.Prerequisites
- A Vercel account
- Your BubblaV website ID
- Git repository (GitHub, GitLab, or Bitbucket)
Deploy Next.js Template
Option 1: One-Click Deploy (Recommended)
The fastest way to deploy your Next.js application to Vercel:Option 2: Deploy with Vercel CLI
Option 3: Deploy via Vercel Dashboard
-
Push your code to GitHub
-
Import to Vercel
- Go to vercel.com/new
- Click “Import Git Repository”
- Select your repository
- Configure the project:
- Framework Preset: Next.js (auto-detected)
- Root Directory:
./(default) - Build Command:
npm run build(default) - Output Directory:
.next(default)
-
Add Environment Variables
- In the Vercel dashboard, go to Settings → Environment Variables
- Add
NEXT_PUBLIC_BUBBLAV_WEBSITE_IDwith your website ID - Click “Save”
-
Deploy
- Click “Deploy”
- Vercel will build and deploy your application
Deploy Nuxt Template
Option 1: One-Click Deploy (Recommended)
The fastest way to deploy your Nuxt application to Vercel:Option 2: Deploy with Vercel CLI
Option 3: Deploy via Vercel Dashboard
-
Push your code to GitHub
-
Import to Vercel
- Go to vercel.com/new
- Click “Import Git Repository”
- Select your repository
- Configure the project:
- Framework Preset: Nuxt.js (auto-detected)
- Root Directory:
./(default) - Build Command:
npm run build(default) - Output Directory:
.output(default)
-
Add Environment Variables
- In the Vercel dashboard, go to Settings → Environment Variables
- Add
NUXT_PUBLIC_BUBBLAV_WEBSITE_IDwith your website ID - Click “Save”
-
Deploy
- Click “Deploy”
- Vercel will build and deploy your application
Deploy Angular Template
Option 1: One-Click Deploy (Recommended)
The fastest way to deploy your Angular application to Vercel:Option 2: Deploy with Vercel CLI
Option 3: Deploy via Vercel Dashboard
-
Push your code to GitHub
-
Import to Vercel
- Go to vercel.com/new
- Click “Import Git Repository”
- Select your repository
- Configure the project:
- Framework Preset: Angular (auto-detected)
- Root Directory:
./(default) - Build Command:
npm run build(default) - Output Directory:
dist/angular-template/browser(default)
-
Add Environment Variables
- In the Vercel dashboard, go to Settings → Environment Variables
- Add
ANGULAR_PUBLIC_BUBBLAV_WEBSITE_IDwith your website ID - Click “Save”
-
Deploy
- Click “Deploy”
- Vercel will build and deploy your application
Environment Variables
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_BUBBLAV_WEBSITE_ID | Your website ID from the BubblaV dashboard (Next.js) | Yes (Next.js) |
NUXT_PUBLIC_BUBBLAV_WEBSITE_ID | Your website ID from the BubblaV dashboard (Nuxt) | Yes (Nuxt) |
ANGULAR_PUBLIC_BUBBLAV_WEBSITE_ID | Your website ID from the BubblaV dashboard (Angular) | Yes (Angular) |
Finding Your Website ID
- Log in to your BubblaV dashboard
- Go to Chat Widget → Installation
- Copy your Website ID
Customization
After deploying, you can customize the widget:Troubleshooting
Widget Not Showing
- Check your Website ID: Ensure the environment variable is set correctly (
NEXT_PUBLIC_BUBBLAV_WEBSITE_IDfor Next.js,NUXT_PUBLIC_BUBBLAV_WEBSITE_IDfor Nuxt,ANGULAR_PUBLIC_BUBBLAV_WEBSITE_IDfor Angular) - Verify deployment: Check Vercel deployment logs for errors
- Clear cache: Clear your browser cache and reload
- For Angular: Verify the
set-env.cjsscript ran correctly by checkingsrc/environments/environment.tscontains your Website ID
Environment Variables Not Working
- Redeploy after adding variables: Environment variables require a redeploy
- Check variable scope: Ensure variables are set for all environments (Preview, Production)
- Verify variable name: Make sure you’re using the correct prefix (
NEXT_PUBLIC_for Next.js,NUXT_PUBLIC_for Nuxt,ANGULAR_PUBLIC_for Angular) - For Angular: Ensure you’re using
set-env.cjsto generate environment files before runningnpm run startornpm run build
