Skip to content

Commit cecb995

Browse files
authored
fix(docs): Configure SWA to never emit trailing slashes for website URLs (#23286)
Ensures consistent relative file path link behavior by ensuring resolved site URLs never include a trailing slash. See <https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#never> Also makes some small fixes to config files for local development. [AB#25895](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/25895)
1 parent 3d6e4e3 commit cecb995

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"prettier:fix": "prettier --write . --cache --ignore-path ../.prettierignore",
4141
"rebuild": "npm run clean && npm run build",
4242
"serve": "docusaurus serve",
43-
"serve-with-azure-emulation": "swa start",
43+
"serve-with-azure-emulation": "swa start --config-name ff-doc-site",
4444
"prestart": "npm run generate-versions",
4545
"start": "docusaurus start",
4646
"pretest": "playwright install --with-deps",

docs/static/staticwebapp.config.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"route": "/404",
1515
"statusCode": 404
1616
}
17-
]
17+
],
18+
"trailingSlash": "never"
1819
}

docs/swa-cli.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
"resourceGroup": "website"
1414
}
1515
}
16-
}
16+
}

0 commit comments

Comments
 (0)