Skip to content

Commit

Permalink
fix: change base and assets path in config to /
Browse files Browse the repository at this point in the history
  • Loading branch information
jakapozun committed Nov 6, 2024
1 parent cc85087 commit a0a534d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import createNextIntlPlugin from 'next-intl/plugin';

const withNextIntl = createNextIntlPlugin();
const isProd = process.env.NODE_ENV === 'production';

/** @type {import('next').NextConfig} */
const nextConfig: import('next').NextConfig = {
Expand All @@ -10,8 +9,8 @@ const nextConfig: import('next').NextConfig = {
images: {
unoptimized: true,
},
basePath: isProd ? '/ProjectIxian/IXI-Labs-website' : '',
assetPrefix: isProd ? '/ProjectIxian/IXI-Labs-website' : '',
basePath: '/',
assetPrefix: '/',
};

export default withNextIntl(nextConfig);

0 comments on commit a0a534d

Please sign in to comment.