Skip to content

Commit

Permalink
ci: 👷 update 404 fallback routes
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Dec 5, 2024
1 parent 507c522 commit 6f04770
Show file tree
Hide file tree
Showing 4 changed files with 3,435 additions and 461 deletions.
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"swa:init": "swa init",
"swa:start": "swa start",
"prepare": "run-script-os",
"prepare:win32": "husky install",
"prepare:darwin:linux": "husky install && chmod ug+x .husky/* && chmod ug+x .git/hooks/*",
Expand All @@ -26,8 +28,8 @@
"*.{js,jsx,css,md}": "prettier --write"
},
"dependencies": {
"@docusaurus/core": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@docusaurus/core": "^3.6.3",
"@docusaurus/preset-classic": "^3.6.3",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@iconify/react": "4.1.1",
Expand All @@ -53,11 +55,12 @@
"uuid": "9.0.1"
},
"devDependencies": {
"@azure/static-web-apps-cli": "^2.0.1",
"@babel/eslint-parser": "7.22.15",
"@commitlint/cli": "17.8.0",
"@commitlint/config-conventional": "17.8.0",
"@docusaurus/module-type-aliases": "^3.5.2",
"@docusaurus/types": "^3.5.2",
"@docusaurus/module-type-aliases": "^3.6.3",
"@docusaurus/types": "^3.6.3",
"@fairdataihub/config": "2.2.3",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "11.0.0",
Expand Down
13 changes: 12 additions & 1 deletion static/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
{ "navigationFallback": { "rewrite": "/index.html", "exclude": ["/*.{ico,js,map,css}"] } }
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*"]
},
"routes": [
{
"route": "/docs/future/*",
"redirect": "/"
}
]
}
12 changes: 12 additions & 0 deletions swa-cli.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
"configurations": {
"ai-readi-docs": {
"appLocation": ".",
"outputLocation": "build",
"appBuildCommand": "npm run build",
"run": "npm start",
"appDevserverUrl": "http://localhost:3000"
}
}
}
Loading

0 comments on commit 6f04770

Please sign in to comment.