-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
example: add srvx start command for launching prod build #5915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,8 @@ | |
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite dev", | ||
| "build": "vite build && tsc --noEmit" | ||
| "build": "vite build && tsc --noEmit", | ||
| "start": "pnpx srvx --prod -s ../client dist/server/server.js" | ||
|
Comment on lines
+8
to
+9
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainFix missing The Add I'll verify the review comment by checking the codebase and package information. Length of output: 5037 🌐 Web query: 💡 Result: Summary — srvx (npm)
If you want I can fetch the package.json from the srvx GitHub repo and list the exact dependencies/devDependencies with versions. Fix missing The Add 🤖 Prompt for AI Agents |
||
| }, | ||
| "dependencies": { | ||
| "@tanstack/solid-router": "^1.136.17", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
✓ Script addition aligns with PR objectives.
The new
startscript correctly usespnpx srvx --prodwith proper client and server paths, matching the normalization pattern across other e2e packages in this PR. Thesrvxdependency (v^0.8.6) is already available in devDependencies.Verify that the relative paths (
../clientanddist/server/server.js) are correct for the actual directory structure of this e2e project. Run this check to confirm:🏁 Script executed:
Length of output: 1143
I've found a critical issue with the script paths. The verification shows that the
../clientpath does not exist. Let me investigate the actual directory structure to determine what the correct path should be.I need to investigate the actual repository structure to determine what the correct client path should be. Let me search for other start scripts in the e2e directory and look for any client references.
The web search didn't provide the specific CLI documentation for srvx's
-sflag. Let me search the repository directly to find how other e2e projects use srvx and what the correct path structure should be.Length of output: 6995
The search reveals a critical pattern: 11 packages use the identical broken path
../client, but there is NOclientdirectory ine2e/solid-start/. However,spa-modeusesdist/client, suggesting the static files are built todist/client. Let me verify the build configuration to understand the correct path.🏁 Script executed:
Length of output: 2211
Now let me check the scroll-restoration vite config specifically and verify whether the
../clientpath was introduced in this PR:🏁 Script executed:
Length of output: 641
Critical: The relative path
../clientis broken and will cause runtime failures.The start script references a non-existent
../clientdirectory. Relative toe2e/solid-start/scroll-restoration/, the path../clientresolves toe2e/solid-start/client/, which does not exist. Based on TanStack Start's default build output structure and thespa-modepackage's use ofdist/client, the correct path should bedist/client:Note: This same broken path appears in 10 other packages in this PR (basic-solid-query, basic-tsr-config, basic, query-integration, selective-ssr, serialization-adapters, server-functions, server-routes, virtual-routes, website). All 11 packages need this fix.
📝 Committable suggestion
🤖 Prompt for AI Agents