Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 64 additions & 11 deletions bun.lock

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,57 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,

// Performance optimizations
compiler: {
removeConsole: process.env.NODE_ENV === "production",
},

// Image optimization
images: {
dangerouslyAllowSVG: true,
remotePatterns: [
{
protocol: "https",
hostname: "*",
},
],
formats: ["image/webp", "image/avif"],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},

// Headers for better performance and security
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "X-Frame-Options",
value: "DENY",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
{
key: "Referrer-Policy",
value: "origin-when-cross-origin",
},
],
},
{
source: "/img/(.*)",
headers: [
{
key: "Cache-Control",
value: "public, max-age=31536000, immutable",
},
],
},
];
},
};

export default withMDX(config);
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"build": "next build",
"dev": "next dev --turbo",
"start": "next start",
"format": "prettier {src,content}/**/*.{ts,tsx,mdx,css} --write",
"format": "prettier \"src/**/*.{ts,tsx,js,jsx,json,css}\" \"content/**/*.{md,mdx}\" --write",
"format:check": "prettier \"src/**/*.{ts,tsx,js,jsx,json,css}\" \"content/**/*.{md,mdx}\" --check",
"postinstall": "fumadocs-mdx"
},
"dependencies": {
"@next/third-parties": "^15.4.5",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tabs": "^1.1.13",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"esbuild": "0.25.8",
"fumadocs-core": "15.6.5",
"fumadocs-mdx": "11.7.0",
"fumadocs-ui": "15.6.5",
Expand All @@ -30,7 +32,8 @@
"react-dom": "^19.1.0",
"react-simple-code-editor": "^0.14.1",
"sharp": "^0.34.3",
"tailwind-merge": "^3.3.1"
"tailwind-merge": "^3.3.1",
"use-debounce": "^10.0.5"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.11",
Expand Down
1 change: 1 addition & 0 deletions public/mission.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading