Skip to content

Commit e2e9f98

Browse files
Added redirect rules
1 parent bd76d9b commit e2e9f98

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

netlify.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
[build]
55
command = "./scripts/build-and-assemble-website.sh"
66
publish = "dist/cursorless-org"
7+
8+
[[redirects]]
9+
from = "/*"
10+
to = "/index.html"
11+
status = 200

packages/cursorless-org/src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export function App() {
1010

1111
<Route path="/cheatsheet" component={CheatsheetPage} />
1212

13-
<Route path="*">
14-
<Redirect to="/" />
15-
</Route>
13+
<Redirect to="/" />
1614
</Switch>
1715
</Router>
1816
);

0 commit comments

Comments
 (0)