A statically generated landing page with Next.js and Makeswift
This example showcases how you can use Makeswift to visually build statically generated pages in Next.js.
Deploy your own
Demo
https://nextjs-makeswift-example.vercel.app/
Related examples
- AgilityCMS
- Builder.io
- ButterCMS
- Contentful
- Cosmic
- DatoCMS
- DotCMS
- Drupal
- Enterspeed
- Ghost
- GraphCMS
- Kontent.ai
- MakeSwift
- Payload
- Plasmic
- Prepr
- Prismic
- Sanity
- Sitecore XM Cloud
- Sitefinity
- Storyblok
- TakeShape
- Tina
- Umbraco
- Umbraco heartcore
- Webiny
- WordPress
- Blog Starter
How to use
Download the example:
Execute
create-next-appwith npm, Yarn, or pnpm to bootstrap the example:npx create-next-app --example cms-makeswift cms-makeswift-appyarn create next-app --example cms-makeswift cms-makeswift-apppnpm create next-app --example cms-makeswift cms-makeswift-appInstall dependencies:
yarn install # or npm install # or pnpm installRename the
.env.local.examplefile to.env.localand include your Makeswift site's API key:-- MAKESWIFT_API_HOST= -- MAKESWIFT_SITE_API_KEY= ++ MAKESWIFT_API_HOST=https://api.makeswift.com ++ MAKESWIFT_SITE_API_KEY=<YOUR_MAKESWIFT_SITE_API_KEY>Run the local dev script:
yarn dev # or npm run devYour host should be up and running on http://localhost:3000.
Finally, go to your Makeswift site settings and add http://localhost:3000/makeswift as the host URL and you're all set!
Deploy it
When you're ready to go live, deploy it to the cloud with Vercel (Documentation). All you'll need to do is update your host inside of Makeswift to your Vercel deployment.
Next steps
With Makeswift, you can give your marketing team custom building blocks to create high quality Next.js pages.
To learn more about Makeswift, take a look at the following resources:
You can check out the Makeswift GitHub repository - your feedback and contributions are welcome!