Skip to content

Commit b0d3817

Browse files
committed
feat: add remote image patterns for optimized loading in Next.js configuration
1 parent 2784843 commit b0d3817

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

next.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ const nextConfig: NextConfig = {
55
turbopack: {
66
root: path.join(__dirname, "."),
77
},
8+
images: {
9+
remotePatterns: [
10+
{
11+
protocol: "https",
12+
hostname: "img.freepik.com",
13+
},
14+
{
15+
protocol: "https",
16+
hostname: "encrypted-tbn0.gstatic.com",
17+
},
18+
],
19+
},
820
reactStrictMode: false,
921
};
1022

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
"dev:backend": "convex dev --typecheck-components",
1010
"dev:build": "chokidar 'tsconfig*.json' 'src/**/*.ts' 'src/**/*.tsx' -i '**/*.test.ts' -c 'npm run build' --initial",
1111
"predev": "convex dev --skip-push && node -e \"if (!require('fs').existsSync('dist')) require('fs').mkdirSync('dist', { recursive: true })\"",
12-
"build": "convex codegen && next build",
13-
"lint": "next lint && tsc -p convex && eslint convex",
12+
"build": "next build",
13+
"build:codegen": "convex codegen && next build",
14+
"typecheck": "tsc --noEmit && tsc -p convex --noEmit",
15+
"lint": "eslint src convex",
1416
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\" \"convex/**/*.{ts,js}\"",
1517
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\" \"convex/**/*.{ts,js}\""
1618
},

0 commit comments

Comments
 (0)