We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 619934d commit 0abbc97Copy full SHA for 0abbc97
src/node/plugin.ts
@@ -251,7 +251,7 @@ export class PluginAPI {
251
if (!p.routerPath) {
252
throw new Error("plugin missing router path")
253
}
254
- if (!p.routerPath.startsWith("/") || p.routerPath.length < 2) {
+ if (!p.routerPath.startsWith("/")) {
255
throw new Error(`plugin router path ${q(p.routerPath)}: invalid`)
256
257
if (!p.homepageURL) {
0 commit comments