Closed jing12345678910 closed 3 weeks ago
修改前:載入全部的翻譯檔
const getStaticPropsFunction = async ({ locale }: ILocale) => ({
props: {
...(await serverSideTranslations(locale, [
'common',
'journal',
'kyc',
'project',
'report_401',
'salary',
'setting',
'terms',
'asset',
'certificate',
])),
locale,
},
});
結果:有檔案過大的警告
cafeca@tidenetde-MBP iSunFA % npm run build
iSunFA@0.8.5+34 build
npm run generate && next build
iSunFA@0.8.5+34 generate
prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.21.1) to ./node_modules/@prisma/client in 611ms
Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)
Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse
▲ Next.js 14.2.16
Environments: .env
Experiments (use with caution):
· instrumentationHook
✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
✓ Collecting page data
Generating static pages (0/96) [ ]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Generating static pages (6/96) [=== ]Warning: data for page "/" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (9/96) [ ===]Warning: data for page "/mobile_upload" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/mobile_upload" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Generating static pages (12/96) [ ==]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Warning: data for page "/privacy-policy" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Warning: data for page "/privacy-policy" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/reports" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/reports" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (18/96) [ =]Warning: data for page "/terms-of-service" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/terms-of-service" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (21/96) [ ]Warning: data for page "/test" is 144 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/test" is 139 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (24/96) [ ==]Warning: data for page "/users/accounting/add_new_voucher" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/add_new_voucher" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/journal_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/journal_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (30/96) [ ===]Warning: data for page "/users/accounting/ledger" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/ledger" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (33/96) [====]Warning: data for page "/users/accounting/trial_balance" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/trial_balance" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (36/96) [=== ]Warning: data for page "/users/accounting/payable_receivable_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/payable_receivable_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/voucher_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/voucher_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (42/96) [== ]Warning: data for page "/users/asset" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/asset" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (45/96) [= ]Warning: data for page "/users/accounting" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/kyc" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (50/96) [ ]Warning: data for page "/users/kyc" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/project" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/project" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (53/96) [= ]Warning: data for page "/users/reports/analyses" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/analyses" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/balance_sheet" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (59/96) [== ]Warning: data for page "/users/reports/financials/balance_sheet" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/income_statement" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (62/96) [=== ]Warning: data for page "/users/reports/financials/income_statement" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/tax/business_tax" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (65/96) [ ===]Warning: data for page "/users/reports/tax/business_tax" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/salary" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/salary" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (70/96) [ ==]Warning: data for page "/users/salary/bookkeeping" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/salary/bookkeeping" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/my_reports" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/my_reports" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (74/96) [ =]Warning: data for page "/users/setting/accounting_title" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (77/96) [ ]Warning: data for page "/users/setting/accounting_title" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/setting/company_info" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (80/96) [ =]Warning: data for page "/users/setting/company_info" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/cash_flow" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (83/96) [ ==]Warning: data for page "/voucher_detail" is 133 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/cash_flow" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (86/96) [ ===]Warning: data for page "/users/setting/counterparty" is 144 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/voucher_detail" is 129 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (89/96) [====]Warning: data for page "/users/setting/counterparty" is 139 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
✓ Generating static pages (96/96)
✓ Collecting build traces
✓ Finalizing page optimization
Route (pages) Size First Load JS
┌ ● / 8.08 kB 223 kB
├ /_app 0 B 207 kB
├ ○ /404 183 B 207 kB
├ ƒ /api/auth/[...nextauth] 0 B 207 kB
├ ƒ /api/auth/error 0 B 207 kB
├ ƒ /api/v1/account_public 0 B 207 kB
├ ƒ /api/v1/account_public/index.test 0 B 207 kB
├ ƒ /api/v1/audit_report 0 B 207 kB
├ ƒ /api/v1/audit_report/index.test 0 B 207 kB
├ ƒ /api/v1/company 0 B 207 kB
├ ƒ /api/v1/company/[companyId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/admin 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/admin/[adminId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId]/status 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/asset 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/asset/[assetId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/contract 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/contract/[contractId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/department 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/department/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/file 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/file/[fileId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/image/[imageId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invitation 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invoice 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invoice/[invoiceId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/journal 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/journal/[journalId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/kyc 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/order 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/payment 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_insight 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_insight/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project_progress 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project_progress/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/progress 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/sale 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/value 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/work_rate 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/public_key 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/report 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/report/[reportId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/[salaryId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/folder 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/folder/[folderId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/voucher 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/select 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/test/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/transfer_owner 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/voucher 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/voucher/[voucherId] 0 B 207 kB
├ ƒ /api/v1/email 0 B 207 kB
├ ƒ /api/v1/sign_out 0 B 207 kB
├ ƒ /api/v1/status_info 0 B 207 kB
├ ƒ /api/v1/user 0 B 207 kB
├ ƒ /api/v1/user/[userId] 0 B 207 kB
├ ƒ /api/v1/user/[userId]/agreement 0 B 207 kB
├ ƒ /api/v1/user/[userId]/invitation 0 B 207 kB
├ ƒ /api/v2/company 0 B 207 kB
├ ƒ /api/v2/company/[companyId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/accounting_setting 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/suggested_number 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/route_utils 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/counterparty 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/counterparty/[counterpartyId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ledger 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ledger/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/pending_task 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/pending_task/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/select 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/setting 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/trial_balance 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/trial_balance/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/read 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/read.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/route_utils 0 B 207 kB
├ ƒ /api/v2/encrypt 0 B 207 kB
├ ƒ /api/v2/job 0 B 207 kB
├ ƒ /api/v2/job/[jobId] 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/application 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/application.test 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/index.test 0 B 207 kB
├ ƒ /api/v2/job/index.test 0 B 207 kB
├ ƒ /api/v2/kyc 0 B 207 kB
├ ƒ /api/v2/news 0 B 207 kB
├ ƒ /api/v2/news/[newsId] 0 B 207 kB
├ ƒ /api/v2/pusher 0 B 207 kB
├ ƒ /api/v2/status_info 0 B 207 kB
├ ƒ /api/v2/upload 0 B 207 kB
├ ƒ /api/v2/user 0 B 207 kB
├ ƒ /api/v2/user/[userId] 0 B 207 kB
├ ƒ /api/v2/user/[userId]/action_log 0 B 207 kB
├ ƒ /api/v2/user/[userId]/agreement 0 B 207 kB
├ ƒ /api/v2/user/[userId]/invitation 0 B 207 kB
├ ƒ /api/v2/user/[userId]/pending_task 0 B 207 kB
├ ƒ /api/v2/user/[userId]/pending_task/index.test 0 B 207 kB
├ ƒ /api/v2/user/[userId]/role 0 B 207 kB
├ ƒ /api/v2/user/[userId]/role/[roleId]/select 0 B 207 kB
├ ƒ /api/v2/user/[userId]/setting 0 B 207 kB
├ ƒ /api/v2/user/[userId]/todo 0 B 207 kB
├ ƒ /beta/dashboard 4.36 kB 282 kB
├ ○ /beta/example 343 B 212 kB
├ ƒ /beta/job_record 3.04 kB 211 kB
├ ƒ /beta/latest_news_page 4.03 kB 216 kB
├ ƒ /beta/latest_news_page/financial_news_page/[newsId] 1.84 kB 257 kB
├ ƒ /beta/latest_news_page/match_news_page/[newsId] 1.59 kB 256 kB
├ ƒ /beta/latest_news_page/system_news_page/[newsId] 1.54 kB 256 kB
├ ƒ /beta/login 2.35 kB 210 kB
├ ƒ /beta/my_company_list_page 3.92 kB 217 kB
├ ƒ /beta/select_role 3.1 kB 210 kB
├ ● /mobile_upload 3.55 kB 211 kB
├ ƒ /normal_settings 3.49 kB 215 kB
├ ● /privacy-policy 1.69 kB 216 kB
├ ● /reports 2.32 kB 216 kB
├ ● /terms-of-service 1.68 kB 216 kB
├ ● /test 2.42 kB 232 kB
├ ● /users/accounting 1.7 kB 358 kB
├ ƒ /users/accounting/[journalId] 1.7 kB 219 kB
├ ● /users/accounting/add_new_voucher 11.4 kB 262 kB
├ ƒ /users/accounting/certificate_list 21 kB 275 kB
├ ● /users/accounting/journal_list 1.94 kB 225 kB
├ ● /users/accounting/ledger 6.51 kB 219 kB
├ ● /users/accounting/payable_receivable_list 4 kB 212 kB
├ ● /users/accounting/trial_balance 5.31 kB 218 kB
├ ● /users/accounting/voucher_list 6.98 kB 220 kB
├ ● /users/asset 6.46 kB 219 kB
├ ƒ /users/asset/[assetId] 2.82 kB 215 kB
├ ƒ /users/dashboard 11.6 kB 224 kB
├ ● /users/kyc 15 kB 241 kB
├ ƒ /users/login 2.57 kB 211 kB
├ ● /users/project 4.31 kB 216 kB
├ ƒ /users/project/[projectId]/contracts 5.89 kB 221 kB
├ ƒ /users/project/[projectId]/dashboard 7.41 kB 223 kB
├ ƒ /users/project/[projectId]/journal 725 B 360 kB
├ ƒ /users/project/[projectId]/journal/[journalId] 681 B 221 kB
├ ƒ /users/project/[projectId]/journal/journal_list 1.16 kB 228 kB
├ ƒ /users/project/[projectId]/report 2.65 kB 227 kB
├ ƒ /users/project/[projectId]/report/analyses 671 B 216 kB
├ ƒ /users/project/[projectId]/report/analyses/view/[reportId] 669 B 216 kB
├ ƒ /users/project/[projectId]/report/financials 672 B 216 kB
├ ƒ /users/project/[projectId]/report/financials/view/[reportId] 671 B 216 kB
├ ƒ /users/project/[projectId]/setting 5.09 kB 220 kB
├ ƒ /users/reports/[reportId]/401-report 5 kB 218 kB
├ ƒ /users/reports/[reportId]/balance_sheet 4.34 kB 215 kB
├ ƒ /users/reports/[reportId]/cash_flow_statement 5.52 kB 279 kB
├ └ css/a2790360f02ba622.css 43.9 kB
├ ƒ /users/reports/[reportId]/income_statement 4.13 kB 218 kB
├ ● /users/reports/analyses 5.04 kB 217 kB
├ ƒ /users/reports/analyses/view/[reportId] 5.61 kB 218 kB
├ ƒ /users/reports/financials 6.04 kB 218 kB
├ ● /users/reports/financials/balance_sheet 7.33 kB 223 kB
├ ● /users/reports/financials/cash_flow 6.43 kB 285 kB
├ ● /users/reports/financials/income_statement 4.51 kB 223 kB
├ ƒ /users/reports/financials/view/[reportId] 52.7 kB 265 kB
├ └ css/50ded5cc2e3e0396.css 1.95 kB
├ ● /users/reports/my_reports 7.33 kB 228 kB
├ ● /users/reports/tax/business_tax 5.19 kB 223 kB
├ ● /users/salary 9.4 kB 222 kB
├ ● /users/salary/bookkeeping 7.13 kB 219 kB
├ ƒ /users/select_company 5.51 kB 218 kB
├ ● /users/setting/accounting_title 4.21 kB 218 kB
├ ● /users/setting/company_info 4.08 kB 218 kB
├ ● /users/setting/counterparty 2.43 kB 232 kB
└ ● /voucher_detail 6.16 kB 232 kB
First Load JS shared by all 236 kB
├ chunks/framework-945b357d4a851f4b.js 44.9 kB
├ chunks/main-8ec0407402cfcce9.js 33 kB
├ chunks/pages/_app-3a1e12f013fb6da7.js 128 kB
├ css/334f4066f1d2b79e.css 28.9 kB
└ other shared chunks (total) 1.69 kB
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses getStaticProps)
ƒ (Dynamic) server-rendered on demand
cafeca@tidenetde-MBP iSunFA %
修改後:把「載入全部」翻譯檔,改為「只載入有用到的」翻譯檔
const getStaticPropsFunction = async ({ locale }: ILocale) => ({
props: {
...(await serverSideTranslations(locale, [
'common',
'setting',
'certificate',
])),
locale,
},
});
結果:修改過的componont的警告就解決了
cafeca@tidenetde-MBP iSunFA % npm run build
iSunFA@0.8.5+34 build
npm run generate && next build
iSunFA@0.8.5+34 generate
prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.21.1) to ./node_modules/@prisma/client in 2.15s
Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)
Tip: Curious about the SQL queries Prisma ORM generates? Optimize helps you enhance your visibility: https://pris.ly/tip-2-optimize
▲ Next.js 14.2.16
Environments: .env
Experiments (use with caution):
· instrumentationHook
✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
✓ Collecting page data
Generating static pages (0/96) [= ]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Generating static pages (6/96) [=== ]Warning: data for page "/" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/mobile_upload" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/mobile_upload" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (12/96) [ ===]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Warning: data for page "/privacy-policy" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Warning: data for page "/privacy-policy" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (15/96) [ =]Warning: data for page "/terms-of-service" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/terms-of-service" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (17/96) [ ]Warning: data for page "/users/accounting/add_new_voucher" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (20/96) [ =]Warning: data for page "/test" is 144 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/add_new_voucher" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (23/96) [ ==]Warning: data for page "/test" is 139 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/reports" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (26/96) [ ===]Warning: data for page "/reports" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (29/96) [====]Warning: data for page "/users/accounting" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/journal_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (32/96) [=== ]Warning: data for page "/users/accounting/journal_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/ledger" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (35/96) [== ]Warning: data for page "/users/accounting/ledger" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/voucher_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/voucher_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (38/96) [= ]Warning: data for page "/users/asset" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/asset" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (43/96) [ ]Warning: data for page "/users/accounting/payable_receivable_list" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/payable_receivable_list" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (46/96) [= ]Warning: data for page "/users/accounting/trial_balance" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/accounting/trial_balance" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (49/96) [== ]Warning: data for page "/users/kyc" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/kyc" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (52/96) [=== ]Warning: data for page "/users/project" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/project" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (55/96) [ ===]Warning: data for page "/users/reports/financials/balance_sheet" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/balance_sheet" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (58/96) [ ==]Warning: data for page "/users/reports/financials/cash_flow" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/cash_flow" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (61/96) [ =]Warning: data for page "/users/reports/financials/income_statement" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/financials/income_statement" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (64/96) [ ]Warning: data for page "/users/reports/my_reports" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/my_reports" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/tax/business_tax" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/tax/business_tax" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (69/96) [ ==]Warning: data for page "/users/salary/bookkeeping" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/salary/bookkeeping" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (72/96) [====]Warning: data for page "/users/salary" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/salary" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (75/96) [=== ]Warning: data for page "/users/setting/accounting_title" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/setting/accounting_title" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (78/96) [== ]Warning: data for page "/users/setting/company_info" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/setting/company_info" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (81/96) [= ]Warning: data for page "/voucher_detail" is 133 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (84/96) [ ]Warning: data for page "/voucher_detail" is 129 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Generating static pages (87/96) [= ]Warning: data for page "/users/reports/analyses" is 134 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
Warning: data for page "/users/reports/analyses" is 138 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
See more info here: https://nextjs.org/docs/messages/large-page-data
✓ Generating static pages (96/96)
✓ Collecting build traces
✓ Finalizing page optimization
Route (pages) Size First Load JS
┌ ● / 8.08 kB 223 kB
├ /_app 0 B 207 kB
├ ○ /404 183 B 207 kB
├ ƒ /api/auth/[...nextauth] 0 B 207 kB
├ ƒ /api/auth/error 0 B 207 kB
├ ƒ /api/v1/account_public 0 B 207 kB
├ ƒ /api/v1/account_public/index.test 0 B 207 kB
├ ƒ /api/v1/audit_report 0 B 207 kB
├ ƒ /api/v1/audit_report/index.test 0 B 207 kB
├ ƒ /api/v1/company 0 B 207 kB
├ ƒ /api/v1/company/[companyId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/account/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/admin 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/admin/[adminId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId]/status 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/asset 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/asset/[assetId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/contract 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/contract/[contractId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/department 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/department/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/employee/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/file 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/file/[fileId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/image/[imageId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invitation 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invoice 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/invoice/[invoiceId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/journal 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/journal/[journalId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/kyc 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/ocr/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/order 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/payment 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_insight 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/profit_insight/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project_progress 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project_progress/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/progress 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/sale 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/value 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/work_rate 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/public_key 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/report 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/report/[reportId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/[salaryId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId]/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/folder 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/folder/[folderId] 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/salary/voucher 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/select 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/test/index.test 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/transfer_owner 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/voucher 0 B 207 kB
├ ƒ /api/v1/company/[companyId]/voucher/[voucherId] 0 B 207 kB
├ ƒ /api/v1/email 0 B 207 kB
├ ƒ /api/v1/sign_out 0 B 207 kB
├ ƒ /api/v1/status_info 0 B 207 kB
├ ƒ /api/v1/user 0 B 207 kB
├ ƒ /api/v1/user/[userId] 0 B 207 kB
├ ƒ /api/v1/user/[userId]/agreement 0 B 207 kB
├ ƒ /api/v1/user/[userId]/invitation 0 B 207 kB
├ ƒ /api/v2/company 0 B 207 kB
├ ƒ /api/v2/company/[companyId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/accounting_setting 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/asset/suggested_number 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/certificate/route_utils 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/counterparty 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/counterparty/[counterpartyId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ledger 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/ledger/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/pending_task 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/pending_task/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/select 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/setting 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/trial_balance 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/trial_balance/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId] 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId]/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/index.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/read 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/read.test 0 B 207 kB
├ ƒ /api/v2/company/[companyId]/voucher/route_utils 0 B 207 kB
├ ƒ /api/v2/encrypt 0 B 207 kB
├ ƒ /api/v2/job 0 B 207 kB
├ ƒ /api/v2/job/[jobId] 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/application 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/application.test 0 B 207 kB
├ ƒ /api/v2/job/[jobId]/index.test 0 B 207 kB
├ ƒ /api/v2/job/index.test 0 B 207 kB
├ ƒ /api/v2/kyc 0 B 207 kB
├ ƒ /api/v2/news 0 B 207 kB
├ ƒ /api/v2/news/[newsId] 0 B 207 kB
├ ƒ /api/v2/pusher 0 B 207 kB
├ ƒ /api/v2/status_info 0 B 207 kB
├ ƒ /api/v2/upload 0 B 207 kB
├ ƒ /api/v2/user 0 B 207 kB
├ ƒ /api/v2/user/[userId] 0 B 207 kB
├ ƒ /api/v2/user/[userId]/action_log 0 B 207 kB
├ ƒ /api/v2/user/[userId]/agreement 0 B 207 kB
├ ƒ /api/v2/user/[userId]/invitation 0 B 207 kB
├ ƒ /api/v2/user/[userId]/pending_task 0 B 207 kB
├ ƒ /api/v2/user/[userId]/pending_task/index.test 0 B 207 kB
├ ƒ /api/v2/user/[userId]/role 0 B 207 kB
├ ƒ /api/v2/user/[userId]/role/[roleId]/select 0 B 207 kB
├ ƒ /api/v2/user/[userId]/setting 0 B 207 kB
├ ƒ /api/v2/user/[userId]/todo 0 B 207 kB
├ ƒ /beta/dashboard 4.36 kB 282 kB
├ ○ /beta/example 343 B 212 kB
├ ƒ /beta/job_record 3.04 kB 211 kB
├ ƒ /beta/latest_news_page 4.03 kB 216 kB
├ ƒ /beta/latest_news_page/financial_news_page/[newsId] 1.84 kB 257 kB
├ ƒ /beta/latest_news_page/match_news_page/[newsId] 1.59 kB 256 kB
├ ƒ /beta/latest_news_page/system_news_page/[newsId] 1.54 kB 256 kB
├ ƒ /beta/login 2.35 kB 210 kB
├ ƒ /beta/my_company_list_page 3.92 kB 217 kB
├ ƒ /beta/select_role 3.1 kB 210 kB
├ ● /mobile_upload 3.55 kB 211 kB
├ ƒ /normal_settings 3.49 kB 215 kB
├ ● /privacy-policy 1.69 kB 216 kB
├ ● /reports 2.32 kB 216 kB
├ ● /terms-of-service 1.68 kB 216 kB
├ ● /test 2.42 kB 232 kB
├ ● /users/accounting 1.7 kB 358 kB
├ ƒ /users/accounting/[journalId] 1.7 kB 219 kB
├ ● /users/accounting/add_new_voucher 11.4 kB 262 kB
├ ƒ /users/accounting/certificate_list 21 kB 275 kB
├ ● /users/accounting/journal_list 1.94 kB 225 kB
├ ● /users/accounting/ledger 6.51 kB 219 kB
├ ● /users/accounting/payable_receivable_list 4 kB 212 kB
├ ● /users/accounting/trial_balance 5.31 kB 218 kB
├ ● /users/accounting/voucher_list 6.98 kB 220 kB
├ ● /users/asset 6.46 kB 219 kB
├ ƒ /users/asset/[assetId] 2.82 kB 215 kB
├ ƒ /users/dashboard 11.6 kB 224 kB
├ ● /users/kyc 15 kB 241 kB
├ ƒ /users/login 2.57 kB 211 kB
├ ● /users/project 4.31 kB 216 kB
├ ƒ /users/project/[projectId]/contracts 5.89 kB 221 kB
├ ƒ /users/project/[projectId]/dashboard 7.41 kB 223 kB
├ ƒ /users/project/[projectId]/journal 725 B 360 kB
├ ƒ /users/project/[projectId]/journal/[journalId] 681 B 221 kB
├ ƒ /users/project/[projectId]/journal/journal_list 1.16 kB 228 kB
├ ƒ /users/project/[projectId]/report 2.65 kB 227 kB
├ ƒ /users/project/[projectId]/report/analyses 671 B 216 kB
├ ƒ /users/project/[projectId]/report/analyses/view/[reportId] 669 B 216 kB
├ ƒ /users/project/[projectId]/report/financials 672 B 216 kB
├ ƒ /users/project/[projectId]/report/financials/view/[reportId] 671 B 216 kB
├ ƒ /users/project/[projectId]/setting 5.09 kB 220 kB
├ ƒ /users/reports/[reportId]/401-report 5 kB 218 kB
├ ƒ /users/reports/[reportId]/balance_sheet 4.34 kB 215 kB
├ ƒ /users/reports/[reportId]/cash_flow_statement 5.52 kB 279 kB
├ └ css/a2790360f02ba622.css 43.9 kB
├ ƒ /users/reports/[reportId]/income_statement 4.13 kB 218 kB
├ ● /users/reports/analyses 5.04 kB 217 kB
├ ƒ /users/reports/analyses/view/[reportId] 5.61 kB 218 kB
├ ƒ /users/reports/financials 6.04 kB 218 kB
├ ● /users/reports/financials/balance_sheet 7.33 kB 223 kB
├ ● /users/reports/financials/cash_flow 6.43 kB 285 kB
├ ● /users/reports/financials/income_statement 4.51 kB 223 kB
├ ƒ /users/reports/financials/view/[reportId] 52.7 kB 265 kB
├ └ css/50ded5cc2e3e0396.css 1.95 kB
├ ● /users/reports/my_reports 7.33 kB 228 kB
├ ● /users/reports/tax/business_tax 5.19 kB 223 kB
├ ● /users/salary 9.4 kB 222 kB
├ ● /users/salary/bookkeeping 7.13 kB 219 kB
├ ƒ /users/select_company 5.51 kB 218 kB
├ ● /users/setting/accounting_title 4.21 kB 218 kB
├ ● /users/setting/company_info 4.08 kB 218 kB
├ ● /users/setting/counterparty 2.43 kB 232 kB
└ ● /voucher_detail 6.16 kB 232 kB
First Load JS shared by all 236 kB
├ chunks/framework-945b357d4a851f4b.js 44.9 kB
├ chunks/main-8ec0407402cfcce9.js 33 kB
├ chunks/pages/_app-3a1e12f013fb6da7.js 128 kB
├ css/334f4066f1d2b79e.css 28.9 kB
└ other shared chunks (total) 1.69 kB
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses getStaticProps)
ƒ (Dynamic) server-rendered on demand
cafeca@tidenetde-MBP iSunFA %
全部componont都照上述修改完之後,還是有些componont會過大,詳細去看,發現這些componont都有載入common這個翻譯檔
想法:把common翻譯檔提出來,只載入一次,其他組件都使用那個載入好的檔案 試過:
// Info: (20241108 - Anna) 新增 getInitialProps 方法來集中加載 common 翻譯,並將翻譯加入 pageProps,避免在每個頁面都要重複加載 common 翻譯
App.getInitialProps = async (appContext: AppContext) => {
const appProps = (await appContext.Component.getInitialProps?.(appContext.ctx)) || {};
const locale = appContext.router.locale || 'tw'; // Info: (20241108 - Anna) 預設語言
const commonTranslations = await serverSideTranslations(locale, ['common']); // Info: (20241108 - Anna) 加載 common
return {
pageProps: {
...appProps,
...commonTranslations, // Info: (20241108 - Anna) 將 common 翻譯加入 pageProps
},
};
};
結果: 看起來在將 common 翻譯集中加載到 _app.tsx 後,一些頁面的「初始加載大小反而變大了」。可能因為在 _app.tsx 中使用 getInitialProps 會影響 Next.js 的靜態優化,並將所有翻譯數據一起加載,導致額外的數據加載和性能開銷。
問題原因: 當 _app.tsx 使用 getInitialProps 時,Next.js 的自動靜態優化(Automatic Static Optimization)會被禁用,即便在某些頁面中使用了 getStaticProps,它們的數據會被統一加載,這會導致頁面初始大小增加。
試過: 把common的FILTER_SECTION_TYPE獨立出新的檔案
結果: 就不會再有Warning了
cafeca@tidenetde-MBP iSunFA % npm run build
> iSunFA@0.8.5+54 build
> npm run generate && next build
> iSunFA@0.8.5+54 generate
> prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.22.0) to ./node_modules/@prisma/client in 1.58s
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
Help us improve the Prisma ORM for everyone. Share your feedback in a short 2-min survey: https://pris.ly/orm/survey/release-5-22
▲ Next.js 14.2.17
- Environments: .env
- Experiments (use with caution):
· instrumentationHook
✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
✓ Collecting page data
Generating static pages (0/96) [ ]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (3/96) [= ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (6/96) [== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (8/96) [=== ]userAvatarSrc /images/fake_user_avatar.png
Generating static pages (11/96) [ ===]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Generating static pages (16/96) [ ==]react-i18next:: You will need to pass in an i18next instance by using initReactI18next
react-i18next:: You will need to pass in an i18next instance by using initReactI18next
Generating static pages (27/96) [ =]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (30/96) [ ==]userAvatarSrc /images/fake_user_avatar.png
Generating static pages (33/96) [ ===]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (39/96) [=== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (43/96) [== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (46/96) [= ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (57/96) [== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (60/96) [=== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (66/96) [ ==]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (72/96) [ ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (77/96) [ ==]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
Generating static pages (80/96) [ ===]userAvatarSrc /images/fake_user_avatar.png
Generating static pages (86/96) [=== ]userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
userAvatarSrc /images/fake_user_avatar.png
✓ Generating static pages (96/96)
✓ Collecting build traces
✓ Finalizing page optimization
Route (pages) Size First Load JS
┌ ● / 8.06 kB 225 kB
├ /_app 0 B 210 kB
├ ○ /404 182 B 210 kB
├ ● /accounting_setting 2.25 kB 217 kB
├ ƒ /api/auth/[...nextauth] 0 B 210 kB
├ ƒ /api/auth/error 0 B 210 kB
├ ƒ /api/v1/account_public 0 B 210 kB
├ ƒ /api/v1/account_public/index.test 0 B 210 kB
├ ƒ /api/v1/audit_report 0 B 210 kB
├ ƒ /api/v1/audit_report/index.test 0 B 210 kB
├ ƒ /api/v1/company 0 B 210 kB
├ ƒ /api/v1/company/[companyId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/account 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/account/[accountId]/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/account/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/admin 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/admin/[adminId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ask_ai/[resultId]/status 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/asset 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/asset/[assetId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/contract 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/contract/[contractId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/department 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/department/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/employee 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/employee/[employeeId]/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/employee/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/file 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/file/[fileId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/image/[imageId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/income_expense_trend/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/invitation 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/invoice 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/invoice/[invoiceId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/journal 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/journal/[journalId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/kyc 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/labor_cost_chart/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ocr 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ocr/[resultId]/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/ocr/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/order 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/payment 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/profit_comparison/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/profit_insight 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/profit_insight/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project_progress 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project_progress/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/progress 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/sale 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/value 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/project/[projectId]/work_rate 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/public_key 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/report 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/report/[reportId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/[salaryId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/employee/[employeeId]/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/folder 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/folder/[folderId] 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/salary/voucher 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/select 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/test/index.test 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/transfer_owner 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/voucher 0 B 210 kB
├ ƒ /api/v1/company/[companyId]/voucher/[voucherId] 0 B 210 kB
├ ƒ /api/v1/email 0 B 210 kB
├ ƒ /api/v1/sign_out 0 B 210 kB
├ ƒ /api/v1/status_info 0 B 210 kB
├ ƒ /api/v1/user 0 B 210 kB
├ ƒ /api/v1/user/[userId] 0 B 210 kB
├ ƒ /api/v1/user/[userId]/agreement 0 B 210 kB
├ ƒ /api/v1/user/[userId]/invitation 0 B 210 kB
├ ƒ /api/v2/company 0 B 210 kB
├ ƒ /api/v2/company/[companyId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/account/[accountId]/lineitem 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/account/[accountId]/lineitem.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/account/[accountId]/voucher 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/account/[accountId]/voucher.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/accounting_setting 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ask_ai 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/[resultId]/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ask_ai/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/asset 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/asset/[assetId]/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/asset/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/asset/suggested_number 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/certificate 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/certificate/[certificateId]/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/certificate/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/certificate/route_utils 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/counterparty 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/counterparty/[counterpartyId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/export 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ledger 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/ledger/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/pending_task 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/pending_task/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/report 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/report/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/report/route_utils.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/select 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/setting 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/trial_balance 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/trial_balance/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId] 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId]/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/[voucherId]/route_utils 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/index.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/read 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/read.test 0 B 210 kB
├ ƒ /api/v2/company/[companyId]/voucher/route_utils 0 B 210 kB
├ ƒ /api/v2/encrypt 0 B 210 kB
├ ƒ /api/v2/job 0 B 210 kB
├ ƒ /api/v2/job/[jobId] 0 B 210 kB
├ ƒ /api/v2/job/[jobId]/application 0 B 210 kB
├ ƒ /api/v2/job/[jobId]/application.test 0 B 210 kB
├ ƒ /api/v2/job/[jobId]/index.test 0 B 210 kB
├ ƒ /api/v2/job/index.test 0 B 210 kB
├ ƒ /api/v2/kyc 0 B 210 kB
├ ƒ /api/v2/news 0 B 210 kB
├ ƒ /api/v2/news/[newsId] 0 B 210 kB
├ ƒ /api/v2/pusher 0 B 210 kB
├ ƒ /api/v2/role 0 B 210 kB
├ ƒ /api/v2/status_info 0 B 210 kB
├ ƒ /api/v2/upload 0 B 210 kB
├ ƒ /api/v2/user 0 B 210 kB
├ ƒ /api/v2/user/[userId] 0 B 210 kB
├ ƒ /api/v2/user/[userId]/action_log 0 B 210 kB
├ ƒ /api/v2/user/[userId]/agreement 0 B 210 kB
├ ƒ /api/v2/user/[userId]/invitation 0 B 210 kB
├ ƒ /api/v2/user/[userId]/pending_task 0 B 210 kB
├ ƒ /api/v2/user/[userId]/pending_task/index.test 0 B 210 kB
├ ƒ /api/v2/user/[userId]/role 0 B 210 kB
├ ƒ /api/v2/user/[userId]/role/[roleId]/select 0 B 210 kB
├ ƒ /api/v2/user/[userId]/setting 0 B 210 kB
├ ƒ /api/v2/user/[userId]/todo 0 B 210 kB
├ ƒ /api/v2/user/[userId]/todo/[todoId] 0 B 210 kB
├ ○ /beta/example 333 B 215 kB
├ ƒ /beta/latest_news_page 4.06 kB 218 kB
├ ƒ /beta/latest_news_page/financial_news_page/[newsId] 1.83 kB 259 kB
├ ƒ /beta/latest_news_page/match_news_page/[newsId] 1.58 kB 259 kB
├ ƒ /beta/latest_news_page/system_news_page/[newsId] 1.53 kB 259 kB
├ ƒ /beta/my_company_list_page 4.48 kB 220 kB
├ ƒ /beta/to_do_list_page 2.39 kB 217 kB
├ ● /mobile_upload 3.53 kB 213 kB
├ ƒ /normal_settings 8.3 kB 223 kB
├ ● /privacy-policy 1.67 kB 219 kB
├ ● /reports 1.94 kB 218 kB
├ ● /terms-of-service 1.67 kB 219 kB
├ ● /users/accounting 1.69 kB 360 kB
├ ƒ /users/accounting/[journalId] 1.68 kB 221 kB
├ ● /users/accounting/add_new_voucher 13.1 kB 264 kB
├ ƒ /users/accounting/certificate_list 22 kB 276 kB
├ ● /users/accounting/journal_list 1.92 kB 227 kB
├ ● /users/accounting/ledger 5.7 kB 221 kB
├ ● /users/accounting/payable_receivable_list 3.62 kB 214 kB
├ ● /users/accounting/trial_balance 4.69 kB 220 kB
├ ● /users/accounting/voucher_list 4.76 kB 220 kB
├ ● /users/asset 4.26 kB 219 kB
├ ƒ /users/asset/[assetId] 2.8 kB 217 kB
├ ƒ /users/create_role 3.39 kB 213 kB
├ ƒ /users/dashboard 4.97 kB 285 kB
├ ● /users/kyc 14.6 kB 243 kB
├ ƒ /users/login 2.52 kB 213 kB
├ ● /users/project 4.29 kB 219 kB
├ ƒ /users/project/[projectId]/contracts 5.88 kB 223 kB
├ ƒ /users/project/[projectId]/dashboard 7.38 kB 226 kB
├ ƒ /users/project/[projectId]/journal 715 B 362 kB
├ ƒ /users/project/[projectId]/journal/[journalId] 675 B 223 kB
├ ƒ /users/project/[projectId]/journal/journal_list 1.14 kB 230 kB
├ ƒ /users/project/[projectId]/report 2.62 kB 230 kB
├ ƒ /users/project/[projectId]/report/analyses 660 B 218 kB
├ ƒ /users/project/[projectId]/report/analyses/view/[reportId] 664 B 218 kB
├ ƒ /users/project/[projectId]/report/financials 663 B 218 kB
├ ƒ /users/project/[projectId]/report/financials/view/[reportId] 663 B 218 kB
├ ƒ /users/project/[projectId]/setting 5.07 kB 223 kB
├ ƒ /users/reports/[reportId]/401-report 4.99 kB 220 kB
├ ƒ /users/reports/[reportId]/balance_sheet 4.32 kB 217 kB
├ ƒ /users/reports/[reportId]/cash_flow_statement 5.5 kB 281 kB
├ └ css/a2790360f02ba622.css 43.9 kB
├ ƒ /users/reports/[reportId]/income_statement 4.11 kB 220 kB
├ ● /users/reports/analyses 5.02 kB 219 kB
├ ƒ /users/reports/analyses/view/[reportId] 5.59 kB 220 kB
├ ƒ /users/reports/financials 6.01 kB 220 kB
├ ● /users/reports/financials/balance_sheet 6.93 kB 225 kB
├ ● /users/reports/financials/cash_flow 6.39 kB 288 kB
├ ● /users/reports/financials/income_statement 4.49 kB 225 kB
├ ƒ /users/reports/financials/view/[reportId] 52.6 kB 267 kB
├ └ css/50ded5cc2e3e0396.css 1.95 kB
├ ● /users/reports/my_reports 6.9 kB 230 kB
├ ● /users/reports/tax/business_tax 5.17 kB 225 kB
├ ● /users/salary 9.38 kB 224 kB
├ ● /users/salary/bookkeeping 7.12 kB 222 kB
├ ƒ /users/select_role 3.41 kB 214 kB
├ ● /users/setting/accounting_title 4.2 kB 221 kB
├ ● /users/setting/company_info 4.18 kB 221 kB
├ ● /users/setting/counterparty 2.48 kB 234 kB
├ ƒ /v1/dashboard 11.6 kB 226 kB
├ ƒ /v1/select_company 5.5 kB 220 kB
└ ● /voucher_detail 6.01 kB 234 kB
+ First Load JS shared by all 239 kB
├ chunks/framework-840cff9d6bb95703.js 44.8 kB
├ chunks/main-f9e8f04eea68d846.js 32.8 kB
├ chunks/pages/_app-5a7a82b65724d297.js 130 kB
├ css/16181344f75ee115.css 29.1 kB
└ other shared chunks (total) 1.69 kB
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses getStaticProps)
ƒ (Dynamic) server-rendered on demand
cafeca@tidenetde-MBP iSunFA %
總結:
可以解決檔案過大的問題
took 8 hrs done
Summary
問題:
Warning: data for page " " is kB which exceeds the threshold of 128 kB, this amount of data can reduce performance. See more info here: https://nextjs.org/docs/messages/large-page-data
結論:
可以解決