Skip to content

Commit bef03b4

Browse files
chore: docs version bump and redirects improvement (#1137)
chore: docs version bump and redirects improvement (#1137)
1 parent 308870b commit bef03b4

File tree

6 files changed

+24
-30
lines changed

6 files changed

+24
-30
lines changed

add-proxy-redirects.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

netlify.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
function = "og-generate.png"
33
path = "/og-generate.png"
44

5+
[build]
6+
trailingSlash = true
7+
58
[build.environment]
69
NODE_VERSION = "22"
710
NODE_OPTIONS = "--max-old-space-size=4096"
@@ -35,3 +38,13 @@
3538
"node_modules/.cache",
3639
".docusaurus"
3740
]
41+
42+
[[redirects]]
43+
from = "/platform-api/*"
44+
to = "https://seqera-docs-api.netlify.app/platform-api/:splat"
45+
status = 200
46+
47+
[[redirects]]
48+
from = "/nextflow/*"
49+
to = "https://docs-migration.netlify.app/nextflow/:splat"
50+
status = 200

netlify/edge-functions/asset-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export default async function handler(request, context) {
2121

2222
// If not found locally, try remote origins
2323
const origins = [
24-
'https://docs-migration.netlify.app',
2524
'https://seqera-docs-api.netlify.app',
25+
'https://docs-migration.netlify.app',
2626
// Add more origins as needed
2727
];
2828

package-lock.json

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"dev": "npm run start",
2424
"prebuild": "npm run fetch-docs-oss",
2525
"build": "docusaurus build",
26-
"postbuild": "node add-proxy-redirects.js",
2726
"swizzle": "docusaurus swizzle",
2827
"deploy": "docusaurus deploy",
2928
"clear": "docusaurus clear",
@@ -39,7 +38,7 @@
3938
"dependencies": {
4039
"@docusaurus/faster": "^3.9.2",
4140
"@rspack/core": "^1.4.11",
42-
"@seqera/docusaurus-preset-seqera": "^1.0.19",
41+
"@seqera/docusaurus-preset-seqera": "^1.0.20",
4342
"image-size": "^2.0.2",
4443
"postcss-import": "^16.1.1",
4544
"postcss-loader": "^8.1.1",

static/_redirects

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,4 @@
7676
/wave/get-started/* /wave/tutorials/:splat 301
7777

7878
#Wave page renaming and moving
79-
/wave/install/configure-wave /wave/configure-wave 301
80-
81-
# Proxy rewrites - status 200 serves content from external URLs
82-
/platform-api/* https://seqera-docs-api.netlify.app/platform-api/:splat 200!
83-
/nextflow/* https://docs-migration.netlify.app/nextflow/:splat 200!
79+
/wave/install/configure-wave /wave/configure-wave 301

0 commit comments

Comments
 (0)