Skip to content

Commit

Permalink
fix: hard navigate on 404 (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Oct 12, 2024
1 parent d02bf9c commit ecc47b3
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/commons/next-seo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@fern-api/fdr-sdk": "workspace:*",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"react": "^18.2.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"mdast-util-to-hast": "^13.1.0",
"mdx-bundler": "^10.0.2",
"moment": "^2.30.1",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"next-mdx-remote": "^5.0.0",
"nprogress": "^0.2.0",
"numeral": "^2.0.6",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/docs-bundle/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const nextConfig = {
],
experimental: {
scrollRestoration: true,
hardNavigate404: true,
optimizePackageImports: ["@fern-ui/ui"],

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/docs-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"form-data": "4.0.0",
"jose": "^5.2.3",
"jsonpath": "^1.1.1",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"node-fetch": "2.7.0",
"postcss-import": "^16.0.1",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/fern-docs-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"@fern-api/fdr-sdk": "workspace:*",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"path-to-regexp": "6.3.0",
"url-join": "5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/fontawesome-cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/react": "^18.0.20",
"depcheck": "^1.4.3",
"eslint": "^8.56.0",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"organize-imports-cli": "^0.10.0",
"prettier": "^3.3.2",
"stylelint": "^16.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/local-preview-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"cssnano": "^6.0.3",
"jsonpath": "^1.1.1",
"lodash-es": "^4.17.21",
"next": "npm:@fern-api/[email protected].1",
"next": "npm:@fern-api/[email protected].2",
"node-fetch": "2.7.0",
"postcss-import": "^16.0.1",
"react": "^18.2.0",
Expand Down
54 changes: 27 additions & 27 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ecc47b3

Please sign in to comment.