fix: update development scripts to use turbopack for improved performance
This commit is contained in:
parent
f0881a062f
commit
7241c19cd5
2 changed files with 5 additions and 5 deletions
|
|
@ -4,9 +4,9 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build --turbopack",
|
||||
"dev": "node ./headers/dev.js && next dev",
|
||||
"dev-https": "node ./headers/dev-https.js && cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' INTERNAL_BASE_URL='https://localhost:3000' next dev --experimental-https",
|
||||
"idev": "cross-env NODE_OPTIONS='--inspect' next dev",
|
||||
"dev": "node ./headers/dev.js && next dev --turbopack",
|
||||
"dev-https": "node ./headers/dev-https.js && cross-env NEXT_PUBLIC_BASE_URL='https://localhost:3000' INTERNAL_BASE_URL='https://localhost:3000' next dev --experimental-https --turbopack",
|
||||
"idev": "cross-env NODE_OPTIONS='--inspect' next dev --turbopack",
|
||||
"lint": "node ./headers/lint.js && next lint && node check-env-vars.js",
|
||||
"start": "next start",
|
||||
"types": "node ./headers/type.js && tsc --noEmit",
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ export const api = createTRPCNext<AppRouter>({
|
|||
errorLink,
|
||||
loggerLink({
|
||||
enabled: (opts) =>
|
||||
//(process.env.NODE_ENV === "development" &&
|
||||
typeof window !== "undefined" /* ) */ ||
|
||||
(process.env.NODE_ENV === "development" &&
|
||||
typeof window !== "undefined") ||
|
||||
(opts.direction === "down" && opts.result instanceof Error),
|
||||
}),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue