generated from kleinlennart/un-website-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
25 lines (21 loc) · 767 Bytes
/
next.config.ts
File metadata and controls
25 lines (21 loc) · 767 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
import type { NextConfig } from 'next'
// Set to '' for custom domain (programmebudget.info), or '/un-budget-explorer' for GitHub Pages subdirectory
// When using a custom domain with GitHub Pages, basePath should be empty
const basePath = process.env.NODE_ENV === 'production' ? (process.env.BASE_PATH || '') : ''
// NOTE: use basePath variable for Image src
// https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath#images
const nextConfig: NextConfig = {
output: 'export',
trailingSlash: true,
basePath: basePath,
assetPrefix: basePath,
reactStrictMode: true,
poweredByHeader: false,
images: {
unoptimized: true
},
env: {
NEXT_PUBLIC_BASE_PATH: basePath,
},
}
export default nextConfig