File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed
Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 3434 "prettier-plugin-tailwindcss" : " ^0.6.14" ,
3535 "prisma" : " 6.12.0" ,
3636 "tailwindcss" : " ^4.1.11" ,
37- "typescript" : " 5.8.3"
37+ "typescript" : " 5.8.3" ,
38+ "tsx" : " ^4.20.3"
3839 }
3940}
Original file line number Diff line number Diff line change 1+ import { createServer } from "http" ;
2+ import next from "next" ;
3+ import { parse } from "url" ;
4+
5+ process . env . TURBOPACK = "1" ;
6+ const nodeEnv = process . env . NODE_ENV || "development" ;
7+
8+ const port = parseInt ( process . env . PORT || "3000" , 10 ) ;
9+ const dev = nodeEnv !== "production" ;
10+ const app = next ( { dev, turbopack : true } ) ;
11+ const handle = app . getRequestHandler ( ) ;
12+
13+ app . prepare ( ) . then ( ( ) => {
14+ createServer ( ( req , res ) => {
15+ const parsedUrl = parse ( req . url ! , true ) ;
16+ handle ( req , res , parsedUrl ) ;
17+ } ) . listen ( port ) ;
18+
19+ console . log (
20+ `> Server listening at http://localhost:${ port } as ${
21+ dev ? "development" : nodeEnv
22+ } `
23+ ) ;
24+ } ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ./tsconfig.json" ,
3+ "compilerOptions" : {
4+ "module" : " commonjs" ,
5+ "outDir" : " dist" ,
6+ "lib" : [" es2019" ],
7+ "target" : " es2019" ,
8+ "isolatedModules" : false ,
9+ "noEmit" : false
10+ },
11+ "include" : [" server.ts" ]
12+ }
You can’t perform that action at this time.
0 commit comments