Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for The Headless WordPress Experience with Frontity
Thrijith Thankachan
Thrijith Thankachan

Posted on • Edited on

     

The Headless WordPress Experience with Frontity

Ever since I came to know about the possibility of a headless setup for WordPress, I have always been tempted to try it out.

I tested out a simple setup based onNext.JS on my local setup, before going ahead withFrontity on my blog with high traffic, which now has 2 posts counting this one 😅

You can check out the simple implementation herehttps://github.com/thrijith/headless-wp which is based on thishttps://webdevstudios.com/2019/01/03/headless-wordpress-with-react-and-nextjs-1/

The setup is pretty straightforward you may followthis, to get started.

Runnpx frontity create mysite-frontity-app && cd mysite-frontity-app select your desired theme and it will create a starter setup for your Forntiy app, runnpx frontity dev, to launch the app, it will use a demo site to get the posts data for your newly created site.

Go ahead and editfrontity.settings.js and point@frontity/wp-source =>api field to your WordPress site, runnpx frontity dev again you should now see posts from your site instead of data from the demo site.

Deploying your site in Vercel

Frontity has a dedicated section which covers the deployment onVercel ( Previously Zeit )

Once your app is set up correctly, it will be visible in your Vercel Dashboard, it will create a random URL for your site, you can test your site there.

You can also set a custom domain for your site, settings for the same can be found under Project => Settings => Domains, you'll also have to set up an ALIAS record to point your custom domain.

Settings Page

Sample ALIAS record inhttps://porkbun.com/ ( My domain registrar )

Please note it may take a couple of hours to reflect the change.

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
aravindajith profile image
Aravind Ajith
UX Enthusiast. Makes uesr-friendly cloud apps @ http://awsm.in.
  • Location
    Trivandrum / Kerala / India
  • Work
    CEO & Head of Designs at Awsm Digital Innovations Pvt Ltd (Awsm Innovations)
  • Joined

We gave Frontity a try last month, ended up building our own site in it! We were amazed by the result and wrote a detailed case study on the experience.
You can read it here -awsm.in/frontity-case-study/

CollapseExpand
 
r_martinezduque profile image
Reyes Martínez
Content and Communications at Frontity. When away-from-computer, I enjoy reading, traveling and photography.
  • Location
    Madrid
  • Joined

Thanks for sharing this! 🙂

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Just another Software Developer
  • Location
    Surat, Gujarat, India
  • Education
    Msc.ICT
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp