Skip to content

Commit

Permalink
* enable prefetch
Browse files Browse the repository at this point in the history
* remove not needed stuff from next.config
* update deps
  • Loading branch information
noxify committed Jan 22, 2025
1 parent 9a3abfe commit 1665b04
Show file tree
Hide file tree
Showing 10 changed files with 3,346 additions and 6,822 deletions.
17 changes: 4 additions & 13 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,15 @@ export default withMDX({
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
images: { unoptimized: true },
// experimental: {
// parallelServerCompiles: true,
// webpackBuildWorker: true,
// },
webpack(config, { webpack }) {
config.resolve.extensionAlias = {
".js": [".ts", ".tsx", ".js"],
}

/* Silence critical dependency warnings for @ts-morph/common */
config.plugins.push(
new webpack.ContextReplacementPlugin(
/\/(@ts-morph\/common)\//,
(data) => {
for (const dependency of data.dependencies) {
delete dependency.critical
}
return data
},
),
)

return config
},
})
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@mdx-js/loader": "3.1.0",
"@mdx-js/node-loader": "3.1.0",
"@mdx-js/react": "3.1.0",
"@next/mdx": "15.1.5",
"@next/mdx": "15.1.6",
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-collapsible": "1.1.2",
"@radix-ui/react-dialog": "1.1.4",
Expand All @@ -44,7 +44,7 @@
"lucide-react": "0.473.0",
"mermaid": "11.4.1",
"multimatch": "7.0.0",
"next": "15.1.5",
"next": "15.1.6",
"next-themes": "0.4.4",
"railroad-diagrams": "1.0.0",
"react": "19.0.0",
Expand All @@ -63,15 +63,15 @@
"devDependencies": {
"@eslint/compat": "1.2.5",
"@ianvs/prettier-plugin-sort-imports": "4.4.1",
"@next/eslint-plugin-next": "15.1.5",
"@next/eslint-plugin-next": "15.1.6",
"@tailwindcss/typography": "0.5.16",
"@types/mdx": "2.0.13",
"@types/node": "22.10.7",
"@types/react": "19.0.7",
"@types/react-dom": "19.0.3",
"@types/serve-handler": "6.1.4",
"eslint": "9.18.0",
"eslint-config-next": "15.1.5",
"eslint-config-next": "15.1.6",
"eslint-plugin-import-x": "4.6.1",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-package-json": "0.20.1",
Expand Down
Loading

0 comments on commit 1665b04

Please sign in to comment.