generated from yehezkielgunawan/next15-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
30 lines (28 loc) · 789 Bytes
/
next.config.mjs
File metadata and controls
30 lines (28 loc) · 789 Bytes
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
import { withcontentCollections } from "@content-collections/next";
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "cdn.sanity.io",
port: "",
},
],
},
env: {
publicRepo: process.env.NEXT_PUBLIC_REPO,
repoId: process.env.NEXT_PUBLIC_REPO_ID,
categoryId: process.env.NEXT_PUBLIC_CATEGORY_ID,
umamiID: process.env.UMAMI_ID,
umamiURL: process.env.UMAMI_URL,
CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
CLOUDFLARE_API_TOKEN: process.env.CLOUDFLARE_API_TOKEN,
},
// Conditional output based on deployment target
output:
process.env.CF_PAGES || process.env.CLOUDFLARE_BUILD
? "standalone"
: undefined,
};
export default withcontentCollections(nextConfig);