use turbopack

This commit is contained in:
proudparrot2 2025-04-19 13:17:07 -05:00
parent 4210b76ff6
commit 8004aaac03
No known key found for this signature in database
3 changed files with 21 additions and 7 deletions

View file

@ -4,7 +4,7 @@
"version": "0.1.0",
"scripts": {
"dev": "node server.mjs",
"build": "next build",
"build": "next build --turbopack",
"start": "NODE_ENV=production node server.mjs"
},
"dependencies": {

View file

@ -12,7 +12,7 @@ const [app, listen] = new ChemicalServer({
});
const port = process.env.PORT || 3000;
const dev = process.env.NODE_ENV !== "production";
const nextApp = next({ dev });
const nextApp = next({ dev, turbopack: true });
const handle = nextApp.getRequestHandler();
nextApp.prepare().then(() => {

View file

@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
@ -18,9 +22,19 @@
}
],
"paths": {
"@/*": ["./src/*"]
}
"@/*": [
"./src/*"
]
},
"target": "ES2017"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}