Next.js Website Boilerplate
CEO & Co-Founder of Cosmic JS
Check out this website boilerplate
built on Next.js
and Cosmic JS
. It satisfies some common website requirements including dynamic pages, blog articles, author management, SEO ability, contact form and website search.
- Fully responsive down to mobile w/ Bootstrap frontend
- SEO ready
- A contact form that sends an email to your email(s) of choice and to Cosmic JS for easy reference
- Full-site search functionality
- All content is easily managed in Cosmic JS including pages, blog and contact info. Sign up for Cosmic JS to install the demo content and deploy this website.
git clone https://github.com/cosmicjs/nextjs-website-boilerplate
Import the bucket.json
file into your Cosmic JS Bucket. To do this go to Your Bucket > Settings > Import / Export Data. Or install the app via the Next.js Website App page
Run in production
COSMIC_BUCKET=your-bucket-slug npm start
Run in development
Contact email Because Next.js doesn’t have a mail server, the contact form uses mailgun to send the email. So add the following constants in the config file.
MAILGUN_DOMAIN : ''
Subscribe to get your daily round-up of top tech stories!