Home

Add the remote Forestry admin to your Nuxt static site

Follow the instructions

Settings / General / Admin Path

For Nuxt /static/admin

Click on "deploy the admin", an HTML file will be added in your repo.

Build locally

It's time to build our full static Nuxt site !

Run npm run build, then npm run export

The site is built, with Nuxt > 2.13, no need to tell Nuxt which routes to generate it's now done automatically!

You can test locally with npm run serve

You can test your Forestry admin at /admin

Deploy to Netlify

Connect your repo to Netlify, the build command is nuxt build && nuxt export and the publish directory is dist

Netlify will do its magic and deploy your site.

When deployed, test to push to your branch a new update, Netlify will rebuild your site and deploy the new version.

We now have a (not so) static website, we can edit the content locally or from the Forestry admin or from our remote Forestry admin.