properly import and optimize/cache images in markdown files

This commit is contained in:
2025-03-03 15:56:57 -05:00
parent 36faa6c234
commit ba10742c9b
71 changed files with 685 additions and 1100 deletions
+11 -7
View File
@@ -10,7 +10,6 @@
"url": "https://github.com/jakejarvis"
},
"type": "module",
"sideEffects": false,
"scripts": {
"dev": "next dev -H 0.0.0.0",
"build": "next build",
@@ -21,8 +20,10 @@
},
"dependencies": {
"@giscus/react": "^3.1.0",
"@mdx-js/mdx": "^3.1.0",
"@next/bundle-analyzer": "15.2.1-canary.4",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/bundle-analyzer": "15.2.1-canary.5",
"@next/mdx": "15.2.1-canary.5",
"@octokit/graphql": "^8.2.1",
"@octokit/graphql-schema": "^15.26.0",
"@prisma/client": "^6.4.1",
@@ -36,7 +37,7 @@
"feed": "^4.2.2",
"gray-matter": "^4.0.3",
"modern-normalize": "^3.0.1",
"next": "15.2.1-canary.4",
"next": "15.2.1-canary.5",
"obj-str": "^1.1.0",
"p-map": "^7.0.3",
"p-memoize": "^7.1.1",
@@ -52,11 +53,13 @@
"react-textarea-autosize": "^8.5.7",
"react-turnstile": "^1.1.4",
"react-tweet": "^3.2.2",
"rehype-mdx-import-media": "^1.2.0",
"rehype-prism-plus": "^2.0.0",
"rehype-sanitize": "^6.0.0",
"rehype-slug": "^6.0.0",
"rehype-stringify": "^10.0.1",
"rehype-unwrap-images": "^1.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
@@ -69,19 +72,20 @@
"@eslint/js": "^9.21.0",
"@jakejarvis/eslint-config": "~4.0.7",
"@types/comma-number": "^2.1.2",
"@types/node": "^22.13.8",
"@types/mdx": "^2.0.13",
"@types/node": "^22.13.9",
"@types/prop-types": "^15.7.14",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@types/react-is": "^19.0.0",
"cross-env": "^7.0.3",
"eslint": "~9.21.0",
"eslint-config-next": "15.2.1-canary.4",
"eslint-config-next": "15.2.1-canary.5",
"eslint-config-prettier": "~10.0.2",
"eslint-plugin-mdx": "~3.1.5",
"eslint-plugin-prettier": "~5.2.3",
"lint-staged": "^15.4.3",
"prettier": "^3.5.2",
"prettier": "^3.5.3",
"prisma": "^6.4.1",
"schema-dts": "^1.1.5",
"simple-git-hooks": "^2.11.1",