Skip to content

Commit 6153493

Browse files
committed
Fix RSC Express server test util
1 parent 28cd222 commit 6153493

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

integration/helpers/vite.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ export const EXPRESS_SERVER = (args: {
190190
);
191191
const app = express();
192192
193+
${args?.customLogic || ""}
194+
193195
if (viteDevServer) {
194196
app.use(viteDevServer.middlewares);
195197
} else {
@@ -200,10 +202,6 @@ export const EXPRESS_SERVER = (args: {
200202
app.all("*", createRequestListener((await import("./build/server/index.js")).default));
201203
}
202204
203-
${args?.customLogic || ""}
204-
205-
app.all("*", requestListener);
206-
207205
const port = ${args.port};
208206
app.listen(port, () => console.log('http://localhost:' + port));
209207
`;

0 commit comments

Comments
 (0)