Skip to content

Commit 0abbc97

Browse files
committed
Allow plugins to register at the root
Unfortunately we have existing plugins with routes there which we cannot move.
1 parent 619934d commit 0abbc97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/plugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class PluginAPI {
251251
if (!p.routerPath) {
252252
throw new Error("plugin missing router path")
253253
}
254-
if (!p.routerPath.startsWith("/") || p.routerPath.length < 2) {
254+
if (!p.routerPath.startsWith("/")) {
255255
throw new Error(`plugin router path ${q(p.routerPath)}: invalid`)
256256
}
257257
if (!p.homepageURL) {

0 commit comments

Comments
 (0)