File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ yarn.lock
1313/server /build
1414/public /build
1515/dist /
16+ /dist-vite- * /
17+ /dist-rsbuild- * /
1618/test-results /
1719/playwright-report /
1820/blob-report /
Original file line number Diff line number Diff line change 88 "dev:e2e" : " vite dev --port $PORT" ,
99 "build" : " vite build && tsc --noEmit" ,
1010 "preview" : " vite preview" ,
11- "start" : " pnpx srvx --prod -s ../client dist/server/server.js" ,
11+ "start" : " pnpx srvx --prod -s ../client ${E2E_DIST_DIR:- dist} /server/server.js" ,
1212 "test:e2e-full" : " pnpm build && sh -c 'rm -f \" port-${E2E_PORT_KEY:-$npm_package_name}.txt\" \" port-${E2E_PORT_KEY:-$npm_package_name}-external.txt\" ' && playwright test --project=chromium"
1313 },
1414 "nx" : {
1515 "metadata" : {
16- "playwrightShards" : 6
16+ "playwrightModes" : [
17+ {
18+ "toolchain" : " vite" ,
19+ "mode" : " ssr" ,
20+ "shards" : 6
21+ }
22+ ]
1723 }
1824 },
1925 "dependencies" : {
Original file line number Diff line number Diff line change @@ -3,8 +3,13 @@ import { tanstackStart } from '@tanstack/react-start/plugin/vite'
33import viteReact from '@vitejs/plugin-react'
44import rsc from '@vitejs/plugin-rsc'
55
6+ const outDir = process . env . E2E_DIST_DIR ?? 'dist'
7+
68export default defineConfig ( {
79 resolve : { tsconfigPaths : true } ,
10+ build : {
11+ outDir,
12+ } ,
813 server : {
914 port : 3000 ,
1015 } ,
You can’t perform that action at this time.
0 commit comments