Releases: makeswift/makeswift
@makeswift/runtime@0.1.0
Our new Next.js plugin is available at @makeswift/runtime/next/plugin
. It enables code-splitting
via next/dynamic
and also removes the need to manually configure next/image
domains.
All builtin components now use next/dynamic
so make sure to configure the Makeswift Next.js plugin
when upgrading to 0.1.0
. You can read more about code-splitting on our
docs.
How to upgrade
Make the following changes to your Next.js config file:
+ const withMakeswift = require('@makeswift/runtime/next/plugin')()
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
- images: {
- domains: ['s.mkswft.com'],
- },
}
- module.exports = nextConfig
+ module.exports = withMakeswift(nextConfig)
Minor Changes
-
b6fecc0: Add code-splitting to all builtin components.
-
32129c0: Add @makeswift/next-plugin to @makeswift/runtime.
Our new Next.js plugin is available at
@makeswift/runtime/next/plugin
. It enables code-splitting
vianext/dynamic
and also removes the need to manually configurenext/image
domains.const withMakeswift = require("@makeswift/runtime/next/plugin")(); /** * @type {import('next').NextConfig} */ const nextConfig = { /* config options here */ }; module.exports = withMakeswift(nextConfig);
Patch Changes
@makeswift/next-plugin@0.1.0
Minor Changes
-
0e26971: Release @makeswift/next-plugin.
This plugin automatically configures the Makeswift domain for next/image and also enables code-splitting via next/dynamic.
@makeswift/runtime@0.0.22
Patch Changes
- 9914800: Check for potentially missing typography values when prefetching page data using introspection.
@makeswift/runtime@0.0.21
Patch Changes
- f2f90a8: Add new format for Image Control:
WithDimensions
. Now you can passWithDimensions
format to Image Control's config. This will make the prop of the Image control have dimensions of the image. See the documentation for further details.
@makeswift/runtime@0.0.20
@makeswift/runtime@0.0.19
Patch Changes
- d4f61e6: Fix regression introduced in 0.0.18 where link wasn't working on Image component.