Skip to content

Commit 86e1f32

Browse files
hasparusclaude
andauthored
new Resources Hub (#2261)
## Description Curated entry points for GraphQL resources, organized by topic. [Figma](https://www.figma.com/design/aPUvZDSxJfYDJtPd7GF2sB/GraphQL.org--Working-File?node-id=6442-7644&m=dev) Feel free to add comments on Vercel Preview Deployment by pressing <kbd>C</kbd>: - https://fabulous-isomorphism-git-resources-hub-hasparus-projects.vercel.app/resources/ ### What - /resources hub with category pages (frontend, backend, AI, federation, etc.) - Video and reading libraries with filtering - Internal tracking page at /resources/internal - Moved community resources pages, added redirects ### Why The existing code page is a flat list. This gives newcomers a path through the ecosystem—pick your use case, find relevant tools. ### Notes - Category metadata added to src/code/ markdown files - Old /community/resources/* paths redirect to new locations - E2E tests cover the new routes ### To be done - [x] Content for AI, Monitoring and Security pages - [ ] maybe better Playwright test? --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 06d8c0e commit 86e1f32

File tree

384 files changed

+5572
-825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+5572
-825
lines changed

next.config.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ALLOWED_SVG_REGEX = new RegExp(`${sep}icons${sep}.+\\.svg$`)
3737
const config = {
3838
output: undefined,
3939
// reactStrictMode: true, provoke duplicated codemirror editors
40-
webpack(config) {
40+
webpack(config, { isServer, dev }) {
4141
// #region MDX
4242
const mdxRule = config.module.rules.find(rule => rule.test?.test?.(".mdx"))
4343
if (mdxRule) {
@@ -62,6 +62,19 @@ const config = {
6262
fileLoaderRule.exclude = /\.svg$/i
6363

6464
config.module.rules.push(
65+
{
66+
test: /\.(png|jpg|jpeg|gif|webp|avif|ico|bmp|svg|txt)$/i,
67+
resourceQuery: /resource/,
68+
type: "asset/resource",
69+
generator: {
70+
filename: "static/media/[name].[hash][ext]",
71+
publicPath: "/_next/",
72+
// Server build outputs to .next/server/, so go up to reach .next/static/
73+
outputPath: [isServer && "../", !dev && "../"]
74+
.filter(Boolean)
75+
.join(""),
76+
},
77+
},
6578
// All .svg from /icons/ and with ?svgr are going to be processed by @svgr/webpack
6679
{
6780
test: ALLOWED_SVG_REGEX,
@@ -103,7 +116,7 @@ const config = {
103116
test: /\.svg$/i,
104117
exclude: ALLOWED_SVG_REGEX,
105118
resourceQuery: {
106-
not: [...fileLoaderRule.resourceQuery.not, /svgr/],
119+
not: [...fileLoaderRule.resourceQuery.not, /svgr|resource/],
107120
},
108121
},
109122
)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"@tailwindcss/container-queries": "^0.1.1",
4444
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
4545
"@tailwindcss/typography": "^0.5.15",
46+
"arktype": "2.1.28",
4647
"autoprefixer": "^10.4.20",
4748
"calendar-link": "^2.10.0",
4849
"clsx": "^2.1.1",

pnpm-lock.yaml

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)