mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-16 19:45:33 -04:00
bump next
This commit is contained in:
@@ -40,6 +40,7 @@ module.exports = {
|
|||||||
"import/no-unresolved": "off",
|
"import/no-unresolved": "off",
|
||||||
"react/jsx-no-undef": "off",
|
"react/jsx-no-undef": "off",
|
||||||
"react/jsx-boolean-value": "off", // TODO: causes some inconsistent parser errors in mdx
|
"react/jsx-boolean-value": "off", // TODO: causes some inconsistent parser errors in mdx
|
||||||
|
"react/no-unknown-property": "off",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@@ -55,21 +55,15 @@ const Image = ({ src, width, height, quality = 60, placeholder, href, inline, ..
|
|||||||
throw new TypeError("'src' should be a string or a valid StaticImageData object.");
|
throw new TypeError("'src' should be a string or a valid StaticImageData object.");
|
||||||
}
|
}
|
||||||
|
|
||||||
const StyledImageWithProps = <StyledImage {...imageProps} />;
|
const StyledImageWithProps = href ? (
|
||||||
|
<Link href={href} underline={false}>
|
||||||
return inline ? (
|
<StyledImage {...imageProps} />
|
||||||
StyledImageWithProps
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<Block>
|
<StyledImage {...imageProps} />
|
||||||
{href ? (
|
|
||||||
<Link href={href} underline={false}>
|
|
||||||
{StyledImageWithProps}
|
|
||||||
</Link>
|
|
||||||
) : (
|
|
||||||
StyledImageWithProps
|
|
||||||
)}
|
|
||||||
</Block>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return inline ? StyledImageWithProps : <Block>{StyledImageWithProps}</Block>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Image;
|
export default Image;
|
||||||
|
@@ -32,9 +32,6 @@ module.exports = (phase) => {
|
|||||||
experimental: {
|
experimental: {
|
||||||
legacyBrowsers: false,
|
legacyBrowsers: false,
|
||||||
browsersListForSwc: true,
|
browsersListForSwc: true,
|
||||||
images: {
|
|
||||||
allowFutureImage: true, // https://github.com/vercel/next.js/pull/37927
|
|
||||||
},
|
|
||||||
newNextLinkBehavior: true, // https://github.com/vercel/next.js/pull/36436
|
newNextLinkBehavior: true, // https://github.com/vercel/next.js/pull/36436
|
||||||
},
|
},
|
||||||
webpack: (config) => {
|
webpack: (config) => {
|
||||||
|
1352
package-lock.json
generated
1352
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@@ -24,12 +24,12 @@
|
|||||||
"@hcaptcha/react-hcaptcha": "^1.4.4",
|
"@hcaptcha/react-hcaptcha": "^1.4.4",
|
||||||
"@novnc/novnc": "github:novnc/novnc#cdfb33665195eb9a73fb00feb6ebaccd1068cd50",
|
"@novnc/novnc": "github:novnc/novnc#cdfb33665195eb9a73fb00feb6ebaccd1068cd50",
|
||||||
"@octokit/graphql": "^5.0.1",
|
"@octokit/graphql": "^5.0.1",
|
||||||
"@octokit/graphql-schema": "^12.0.0",
|
"@octokit/graphql-schema": "^12.1.0",
|
||||||
"@primer/octicons": "^17.5.0",
|
"@primer/octicons": "^17.5.0",
|
||||||
"@prisma/client": "^4.3.0",
|
"@prisma/client": "^4.3.1",
|
||||||
"@react-spring/web": "^9.5.2",
|
"@react-spring/web": "^9.5.2",
|
||||||
"@sentry/node": "^7.11.1",
|
"@sentry/node": "^7.12.1",
|
||||||
"@sentry/tracing": "^7.11.1",
|
"@sentry/tracing": "^7.12.1",
|
||||||
"@stitches/react": "^1.2.8",
|
"@stitches/react": "^1.2.8",
|
||||||
"comma-number": "^2.1.0",
|
"comma-number": "^2.1.0",
|
||||||
"copy-to-clipboard": "^3.3.2",
|
"copy-to-clipboard": "^3.3.2",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"hex-to-rgba": "^2.0.1",
|
"hex-to-rgba": "^2.0.1",
|
||||||
"marked": "^4.1.0",
|
"marked": "^4.1.0",
|
||||||
"next": "12.2.6-canary.6",
|
"next": "12.2.6-canary.10",
|
||||||
"next-mdx-remote": "^4.1.0",
|
"next-mdx-remote": "^4.1.0",
|
||||||
"next-seo": "^5.5.0",
|
"next-seo": "^5.5.0",
|
||||||
"obj-str": "^1.1.0",
|
"obj-str": "^1.1.0",
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
"remark-smartypants": "^2.0.0",
|
"remark-smartypants": "^2.0.0",
|
||||||
"remark-unwrap-images": "^3.0.1",
|
"remark-unwrap-images": "^3.0.1",
|
||||||
"remove-markdown": "^0.5.0",
|
"remove-markdown": "^0.5.0",
|
||||||
"simple-icons": "^7.9.0",
|
"simple-icons": "^7.10.0",
|
||||||
"sitemap": "^7.1.1",
|
"sitemap": "^7.1.1",
|
||||||
"swr": "^1.3.0"
|
"swr": "^1.3.0"
|
||||||
},
|
},
|
||||||
@@ -83,23 +83,23 @@
|
|||||||
"@types/react-is": "^17.0.3",
|
"@types/react-is": "^17.0.3",
|
||||||
"@types/remove-markdown": "^0.3.1",
|
"@types/remove-markdown": "^0.3.1",
|
||||||
"@types/uglify-js": "^3.17.0",
|
"@types/uglify-js": "^3.17.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.36.1",
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
||||||
"@typescript-eslint/parser": "^5.36.1",
|
"@typescript-eslint/parser": "^5.36.2",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "~8.23.0",
|
"eslint": "~8.23.0",
|
||||||
"eslint-config-next": "12.2.6-canary.6",
|
"eslint-config-next": "12.2.6-canary.10",
|
||||||
"eslint-config-prettier": "~8.5.0",
|
"eslint-config-prettier": "~8.5.0",
|
||||||
"eslint-plugin-mdx": "~2.0.2",
|
"eslint-plugin-mdx": "~2.0.3",
|
||||||
"eslint-plugin-prettier": "~4.2.1",
|
"eslint-plugin-prettier": "~4.2.1",
|
||||||
"lint-staged": "^13.0.3",
|
"lint-staged": "^13.0.3",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prisma": "^4.3.0",
|
"prisma": "^4.3.1",
|
||||||
"simple-git-hooks": "^2.8.0",
|
"simple-git-hooks": "^2.8.0",
|
||||||
"typescript": "^4.8.2",
|
"typescript": "^4.8.2",
|
||||||
"uglify-js": "^3.17.0"
|
"uglify-js": "^3.17.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"sharp": "^0.30.7"
|
"sharp": "^0.31.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.x"
|
"node": ">=16.x"
|
||||||
@@ -118,6 +118,6 @@
|
|||||||
},
|
},
|
||||||
"volta": {
|
"volta": {
|
||||||
"node": "16.17.0",
|
"node": "16.17.0",
|
||||||
"npm": "8.18.0"
|
"npm": "8.19.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user