Skip to content

Commit

Permalink
Add Pattycake and update @types/react version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Miller committed Nov 4, 2023
1 parent debcc53 commit 1e6aed4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion apps/next/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { withTamagui } = require('@tamagui/next-plugin')
const { join } = require('path')
const million = require('million/compiler')
const pattycake = require('pattycake');
const withPWA = require("@ducanh2912/next-pwa").default({
dest: "public",
disable: process.env.NODE_ENV === "development",
Expand All @@ -23,6 +24,8 @@ const disableBrowserLogs =
const enableMillionJS =
boolVals[process.env.ENABLE_MILLION_JS] ?? process.env.NODE_ENV === 'production'

const enablePattyCake = boolVals[process.env.ENABLE_PATTY_CAKE] ?? process.env.NODE_ENV === 'production'

// Enabling causes FOUC on page refreshes
const optimizeCss = false

Expand Down Expand Up @@ -112,7 +115,12 @@ module.exports = function () {
}

if (enableMillionJS) {
return million.next(config, millionConfig);
config = million.next(config, millionConfig);
}

if (enablePattyCake) {
config = pattycake.next(config);
}

return config;
}
2 changes: 1 addition & 1 deletion apps/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@tamagui/next-plugin": "1.75.9",
"@types/react": "^18.2.33",
"@types/react": "^18.2.34",
"eslint-config-next": "^14.0.1",
"vercel": "^32.5.0"
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"check-dependency-version-consistency": "^4.1.0",
"eslint": "^8.52.0",
"npm-run-all": "^4.1.5",
"pattycake": "^0.0.2",
"prettier": "^3.0.3",
"react-native-url-polyfill": "^2.0.0",
"typescript": "^5.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"solito": "^4.1.3"
},
"devDependencies": {
"@types/react": "^18.2.33"
"@types/react": "^18.2.34"
}
}

1 comment on commit 1e6aed4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔ EAS production build completed

  • 🤖 Android build failed ❌
  • 🍏 IOS build failed ❌
Android QR IOS QR

Please sign in to comment.