Skip to content

Commit f276398

Browse files
committed
Fix optional param for Express 5
1 parent c037cd9 commit f276398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/serve-pattern-library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function servePatternLibrary(port = 4001) {
1717
);
1818

1919
// For any other path, serve the index.html file to allow client-side routing
20-
app.get('/:path?', (req, res) => {
20+
app.get('/{:path}', (req, res) => {
2121
res.sendFile(path.join(dirname, '../templates/index.html'));
2222
});
2323

0 commit comments

Comments
 (0)