We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b95ad06 commit c02bcc1Copy full SHA for c02bcc1
next.config.ts
@@ -2,7 +2,7 @@ import createMDX from '@next/mdx'
2
/** @type {import('next').NextConfig} */
3
const nextConfig = {
4
output: 'export' as const,
5
- basePath: process.env.NODE_ENV === 'production' ? '/earthnet.tech' : '',
+ basePath: process.env.NODE_ENV === 'production' ? '' : '',
6
images: {
7
unoptimized: true,
8
},
src/lib/utils.ts
@@ -7,6 +7,6 @@ export function cn(...inputs: ClassValue[]) {
9
export const withBasePath = (path: string) => {
10
- const basePath = process.env.NODE_ENV === 'production' ? '/earthnet.tech' : ''
+ const basePath = process.env.NODE_ENV === 'production' ? '' : ''
11
return `${ basePath || ''}${path}`;
12
};
0 commit comments