-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
30 lines (27 loc) · 746 Bytes
/
next.config.ts
File metadata and controls
30 lines (27 loc) · 746 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 nextra from "nextra";
import { locales, defaultLocale } from "./src/i18n";
const withNextra = nextra({
contentDirBasePath: "/"
});
const isProduction = process.env.NODE_ENV === "production";
const assetPrefix = isProduction ? "/clevercoffee-docs" : "";
// You can include other Next.js configuration options here, in addition to Nextra settings:
export default withNextra({
reactStrictMode: true,
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true
},
i18n: {
locales,
defaultLocale
},
output: "export",
trailingSlash: true,
images: {
unoptimized: true
},
assetPrefix,
basePath: assetPrefix
});