Skip to content

Commit

Permalink
Resolved log warnings in nextjs dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Miller committed Oct 20, 2023
1 parent 37eb8e2 commit af9ad31
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 16 deletions.
4 changes: 1 addition & 3 deletions apps/next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const enableMillionJS =
boolVals[process.env.ENABLE_MILLION_JS] ?? process.env.NODE_ENV === 'production'

// Enabling causes FOUC on page refreshes
const optimizeCss = false // boolVals[process.env.OPTIMIZE_CSS] ?? process.env.NODE_ENV === 'production'
const optimizeCss = false

const plugins = [
withPWA,
Expand Down Expand Up @@ -81,11 +81,9 @@ module.exports = function () {
- Solito doesn't support app dir at the moment - You'll have to remove Solito.
- The `/app` in this starter has the same routes as the `/pages` directory. You should probably remove `/pages` after enabling this.
*/
appDir: false,
optimizeCss,
forceSwcTransforms: true,
scrollRestoration: true,
legacyBrowsers: false
},
compiler: {
removeConsole: disableBrowserLogs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from 'react'
import { YStack, Paragraph, XStack, Button, Input, Stack } from 'tamagui'
import { YStack, Paragraph, XStack, Button, Input, Stack } from '@t4/ui'
import { Link } from 'solito/link'
import { type Provider } from '@supabase/supabase-js'
import { SolitoImage } from 'solito/image'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/features/sign-in/screen.native.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { YStack, useToastController } from '@t4/ui'
import { SignUpSignInComponent } from '@t4/ui/src/SignUpSignIn'
import { SignUpSignInComponent } from 'app/features/sign-in/SignUpSignIn'
import { useRouter } from 'solito/router'
import type { Provider } from '@supabase/supabase-js'
import Constants from 'expo-constants'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/features/sign-in/screen.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { YStack, useToastController } from '@t4/ui'
import { SignUpSignInComponent } from '@t4/ui/src/SignUpSignIn'
import { SignUpSignInComponent } from 'app/features/sign-in/SignUpSignIn'
import { useRouter } from 'solito/router'
import type { Provider } from '@supabase/supabase-js'
import Constants from 'expo-constants'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/features/sign-up/screen.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { YStack, useToastController } from '@t4/ui'
import { useRouter } from 'solito/router'
import { SignUpSignInComponent } from '@t4/ui/src/SignUpSignIn'
import { SignUpSignInComponent } from 'app/features/sign-in/SignUpSignIn'
import type { Provider } from '@supabase/supabase-js'
import { capitalizeWord } from 'app/utils/string'
import { isExpoGo } from 'app/utils/flags'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/features/sign-up/screen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { YStack, useToastController } from '@t4/ui'
import { useRouter } from 'solito/router'
import { SignUpSignInComponent } from '@t4/ui/src/SignUpSignIn'
import { SignUpSignInComponent } from 'app/features/sign-in/SignUpSignIn'
import type { Provider } from '@supabase/supabase-js'
import { capitalizeWord } from 'app/utils/string'
import { isExpoGo } from 'app/utils/flags'
Expand Down
2 changes: 0 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
},
"dependencies": {
"@shopify/flash-list": "^1.6.1",
"@supabase/supabase-js": "^2.36.0",
"@t4/api": "^2.0.0",
"@tamagui/animations-react-native": "1.72.3",
"@tamagui/font-inter": "1.72.3",
"@tamagui/react-native-media-driver": "1.72.3",
Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit af9ad31

@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.