Skip to content

Commit

Permalink
fix(app): enable expermental features and fix migration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnatarHe committed Nov 8, 2024
1 parent 6600f50 commit 79e2cbc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ const config = {
cacheHandler: isProd ? require.resolve('./cache-handler.mjs') : undefined,
cacheMaxMemorySize: 0,
experimental: {
instrumentationHook: true,
ppr: true,
useLightningcss: true,
// typedEnv: true,
// typedRoutes: true,
},
images: {
domains: [
Expand Down
2 changes: 1 addition & 1 deletion src/app/auth/phone/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type AuthPageProps = {
}

function AuthPage(props: AuthPageProps) {
const children = use(props.children);
const children = props.children
usePageTrack('auth')
const { push: navigate } = useRouter()
useEffect(() => {
Expand Down
14 changes: 7 additions & 7 deletions src/app/auth/signin/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use client'
import React, { useEffect, use } from 'react';
import Card from '../../../components/card/card'
import React from 'react';
import Card from '@/components/card/card'
import Link from 'next/link'
import Image from 'next/image'
import { GithubClientID, SignInWithAppleOptions } from '../../../constants/config';
import { usePageTrack, useActionTrack } from '../../../hooks/tracke';
import { GithubClientID } from '@/constants/config';
import { usePageTrack, useActionTrack } from '@/hooks/tracke';
import { useTranslation } from 'react-i18next';
import logo from '../../../assets/logo.png'
import GithubLogo from '../../../components/icons/github.logo.svg';
import logo from '@/assets/logo.png'
import GithubLogo from '@/components/icons/github.logo.svg';

function checkIsCurrentPath({ isCurrent }: any) {
return {
Expand All @@ -20,7 +20,7 @@ type AuthPageProps = {
}

function AuthPage(props: AuthPageProps) {
const children = use(props.children);
const children = props.children
usePageTrack('auth')
// const { push: navigate } = useRouter()
// useEffect(() => {
Expand Down

0 comments on commit 79e2cbc

Please sign in to comment.