25 lines
563 B
JavaScript
25 lines
563 B
JavaScript
import { RouterContext } from "next/dist/shared/lib/router-context";
|
|
import * as NextImage from "next/image";
|
|
|
|
import "../styles/globals.css";
|
|
|
|
const OriginalNextImage = NextImage.default;
|
|
|
|
Object.defineProperty(NextImage, "default", {
|
|
configurable: true,
|
|
value: (props) => <OriginalNextImage {...props} unoptimized />,
|
|
});
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
nextRouter: {
|
|
Provider: RouterContext.Provider,
|
|
},
|
|
};
|