You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this release we’ve updated Next to 12.1, and WordPress to version 6.0.
Features
Sitemaps, RSS Feeds and Robots.txt
To implement sitemaps, we’ve built a simple proxy that pulls in the sitemap output by Yoast SEO in WordPress. We found this approach simpler than coding sitemaps ourselves in Next, and offer editors an interface to manage via Yoast, and a wide variety of plugins.
We’re using a similar approach to pull in RSS feeds.
We’ve also introduced a dynamic robots.txt file that will set allow or disallow rules depending on whether you’re in production or staging.
Manual Changes
Caching Fix
Previous versions had a bug where once a page entered the cache, it wouldn’t update if the underlying post was published or removed. In any [[..slug]].js routes, you’ll want to update the return to include properties for revalidate and an empty props object:
Then you’ll also want to run this command to grab the latest configs:rsync -a ../bubs-next/website/(.eslintrc.json|.stylelintrc.json|.prettierrc) website
Stylelint 14
VS Code Stylelint now requires version 14.
We’ve made a few changes to .vscode/settings.json to reflect this you’ll want to copy over.
Additionally, you’ll need to yarn add postcss since it’s not bundled
Bug Fixes
if preview auth code present, refresh token (6bb552c)
logged out redirect to headless domain was sending broken link (#208) (a479422)
preview mode bugs with preview on unpublished posts (#193) (64d875f)
revalidate so pages can be published/unpublished (#213) (02ad07b), closes #201
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In this release we’ve updated Next to 12.1, and WordPress to version 6.0.
Features
Sitemaps, RSS Feeds and Robots.txt
To implement sitemaps, we’ve built a simple proxy that pulls in the sitemap output by Yoast SEO in WordPress. We found this approach simpler than coding sitemaps ourselves in Next, and offer editors an interface to manage via Yoast, and a wide variety of plugins.
We’re using a similar approach to pull in RSS feeds.
We’ve also introduced a dynamic robots.txt file that will set allow or disallow rules depending on whether you’re in production or staging.
Manual Changes
Caching Fix
Previous versions had a bug where once a page entered the cache, it wouldn’t update if the underlying post was published or removed. In any
[[..slug]].js
routes, you’ll want to update the return to include properties for revalidate and an empty props object:Simplified ESLint
We now have a simpler ESLint setup more aligned with the default
eslint-config-next
.In your package.json, you can remove any other eslint packages, then replace with:
Then you’ll also want to run this command to grab the latest configs:
rsync -a ../bubs-next/website/(.eslintrc.json|.stylelintrc.json|.prettierrc) website
Stylelint 14
VS Code Stylelint now requires version 14.
We’ve made a few changes to
.vscode/settings.json
to reflect this you’ll want to copy over.Additionally, you’ll need to
yarn add postcss
since it’s not bundledBug Fixes
This discussion was created from the release Q2 2022 - Version 1.2.0.
Beta Was this translation helpful? Give feedback.
All reactions