-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
53 lines (46 loc) · 1.11 KB
/
next.config.ts
File metadata and controls
53 lines (46 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Enable static export for GitHub Pages
output: "export",
// Disable trailing slash for better GitHub Pages compatibility
trailingSlash: false,
// Configure images for static export
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "github.com",
pathname: "/CodeStorm-Hub/**",
},
{
protocol: "https",
hostname: "images.unsplash.com",
pathname: "/**",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
pathname: "/**",
},
{
protocol: "https",
hostname: "ui-avatars.com",
pathname: "/**",
},
],
},
// Performance optimizations
poweredByHeader: false,
// TypeScript configuration
typescript: {
// Type checking is handled by the CI pipeline
ignoreBuildErrors: false,
},
// ESLint configuration
eslint: {
// Linting is handled by the CI pipeline
ignoreDuringBuilds: false,
},
};
export default nextConfig;