Skip to content

Commit 4c09d7b

Browse files
committed
fix(build): Force webpack for Vercel, update UI text
1 parent 81a51a0 commit 4c09d7b

7 files changed

Lines changed: 87 additions & 3 deletions

File tree

build.log

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
> elearning-platform@0.1.0 build
3+
> next build
4+
5+
▲ Next.js 16.1.4 (Turbopack)
6+
- Environments: .env.local
7+
8+
Creating an optimized production build ...
9+
⨯ ERROR: This build is using Turbopack, with a `webpack` config and no `turbopack` config.
10+
This may be a mistake.
11+
12+
As of Next.js 16 Turbopack is enabled by default and
13+
custom webpack configurations may need to be migrated to Turbopack.
14+
15+
NOTE: your `webpack` config may have been added by a configuration plugin.
16+
17+
To configure Turbopack, see https://nextjs.org/docs/app/api-reference/next-config-js/turbopack
18+
19+
TIP: Many applications work fine under Turbopack with no configuration,
20+
if that is the case for you, you can silence this error by passing the
21+
`--turbopack` or `--webpack` flag explicitly or simply setting an
22+
empty turbopack config in your Next config file (e.g. `turbopack: {}`).
23+
24+
> Build error occurred
25+
Error: Call retries were exceeded
26+
at ignore-listed frames {
27+
type: 'WorkerError'
28+
}

build_webpack.log

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
▲ Next.js 16.1.4 (webpack)
2+
- Environments: .env.local
3+
4+
Creating an optimized production build ...
5+
✓ (pwa) Compiling for server...
6+
✓ (pwa) Compiling for server...
7+
✓ (pwa) Compiling for client (static)...
8+
○ (pwa) Service worker: E:\CEP\elearning-platform\public\sw.js
9+
○ (pwa) URL: /sw.js
10+
○ (pwa) Scope: /
11+
✓ Compiled successfully in 9.8s
12+
Running TypeScript ...
13+
Collecting page data using 11 workers ...
14+
Generating static pages using 11 workers (0/10) ...
15+
⚠ Unsupported metadata themeColor is configured in metadata export in /auth/forgot-password. Please move it to viewport export instead.
16+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
17+
⚠ Unsupported metadata themeColor is configured in metadata export in /auth/login. Please move it to viewport export instead.
18+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
19+
⚠ Unsupported metadata themeColor is configured in metadata export in /auth/verify-email. Please move it to viewport export instead.
20+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
21+
⚠ Unsupported metadata themeColor is configured in metadata export in /auth/signup. Please move it to viewport export instead.
22+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
23+
⚠ Unsupported metadata themeColor is configured in metadata export in /dashboard/manage. Please move it to viewport export instead.
24+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
25+
⚠ Unsupported metadata themeColor is configured in metadata export in /dashboard. Please move it to viewport export instead.
26+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
27+
⚠ Unsupported metadata themeColor is configured in metadata export in /_not-found. Please move it to viewport export instead.
28+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
29+
⚠ Unsupported metadata themeColor is configured in metadata export in /db-diagnostic. Please move it to viewport export instead.
30+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
31+
Generating static pages using 11 workers (2/10)
32+
⚠ Unsupported metadata themeColor is configured in metadata export in /. Please move it to viewport export instead.
33+
Read more: https://nextjs.org/docs/app/api-reference/functions/generate-viewport
34+
Generating static pages using 11 workers (4/10)
35+
Generating static pages using 11 workers (7/10)
36+
✓ Generating static pages using 11 workers (10/10) in 946.6ms
37+
Finalizing page optimization ...
38+
Collecting build traces ...
39+
40+
Route (app)
41+
┌ ○ /
42+
├ ○ /_not-found
43+
├ ○ /auth/forgot-password
44+
├ ○ /auth/login
45+
├ ○ /auth/signup
46+
├ ○ /auth/verify-email
47+
├ ○ /dashboard
48+
├ ○ /dashboard/manage
49+
└ ○ /db-diagnostic
50+
51+
52+
○ (Static) prerendered as static content
53+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7-
"build": "next build",
7+
"build": "next build --webpack",
88
"start": "next start",
99
"lint": "eslint"
1010
},
@@ -26,4 +26,4 @@
2626
"eslint-config-next": "16.1.4",
2727
"typescript": "^5"
2828
}
29-
}
29+
}

public/sw.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/swe-worker-5c72df51bb1f6ee0.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/workbox-f1770938.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/public/NotesBrowser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export default function NotesBrowser() {
369369
</button>
370370
)}
371371
<h3 className={styles.notesTitle} style={{ margin: 0 }}>
372-
{selectedFolder ? selectedFolder.name : (selectedSub.name === "General Materials" ? "Files" : `Materials for ${selectedSub.name}`)}
372+
{selectedFolder ? selectedFolder.name : (selectedSub.name === "General Materials" ? "FILES" : `Materials for ${selectedSub.name}`)}
373373
</h3>
374374
</div>
375375

0 commit comments

Comments
 (0)