Skip to content

Commit 7cc55ae

Browse files
committed
fix(integration): fix srvx static path resolution for tanstack-start
srvx resolves --static path relative to the entry file directory (dist/server/), not CWD. Use ../client to correctly resolve to dist/client/ where built assets live.
1 parent 0f3475d commit 7cc55ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/templates/tanstack-react-start/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "vite build",
77
"dev": "vite dev --port=$PORT",
8-
"start": "srvx --static dist/client dist/server/server.js"
8+
"start": "srvx --static ../client dist/server/server.js"
99
},
1010
"dependencies": {
1111
"@tanstack/react-router": "1.157.16",

0 commit comments

Comments
 (0)