Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit da9e445

Browse files
committed
error page should be index.html for spa
1 parent b1ad36f commit da9e445

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guides/nodejs/websites-vite-react.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ services:
7272
batch-services: []
7373
websites:
7474
- basedir: ./main-website
75+
# Since this is a Single Page Application (SPA), we need to redirect all requests to the index.html file.
76+
error: index.html
7577
build:
7678
command: npm run build
7779
output: dist

0 commit comments

Comments
 (0)