Skip to content

Commit bdc1556

Browse files
authored
Fix/node basename (#613)
* fix: node basename need empty if / * docs: add changeset * fix: node basename need empty if /
1 parent c1225f7 commit bdc1556

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Diff for: packages/cli/plugin-router/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @modern-js/plugin-router
22

3+
## 1.2.4
4+
5+
### Patch Changes
6+
7+
- 290390b0: fix basename in node
8+
39
## 1.2.3
410

511
### Patch Changes

Diff for: packages/cli/plugin-router/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"modern",
1212
"modern.js"
1313
],
14-
"version": "1.2.3",
14+
"version": "1.2.4",
1515
"jsnext:source": "./src/index.ts",
1616
"types": "./src/index.ts",
1717
"main": "./dist/js/node/runtime/index.js",

Diff for: packages/cli/plugin-router/src/runtime/plugin.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const routerPlugin: any = ({
113113

114114
return (
115115
<StaticRouter
116-
basename={basename}
116+
basename={basename === '/' ? '' : basename}
117117
location={location}
118118
context={routerContext}>
119119
{routesConfig ? (

0 commit comments

Comments
 (0)