@nok @kennethwang Turns out I had to upgrade fastpages to get everything to work. Now production mode is turned on, so you shouldn’t have to change your if statement.
You should upgrade to the latest version of fastpages, however, as I made some significant improvements. Announcement is here Major Upgrade To Fastpages: Faster build times & customizations