Skip to content

Commit

Permalink
chore: fix next config
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Nov 7, 2024
1 parent 396caca commit d66a079
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
25 changes: 0 additions & 25 deletions next.config.js

This file was deleted.

27 changes: 23 additions & 4 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
import { PHASE_DEVELOPMENT_SERVER } from 'next/constants';

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
/* config options here */
};
export default async (phase: string) => {
if (phase === PHASE_DEVELOPMENT_SERVER) {
/**
* @type {import('next').NextConfig}
*/
const nextConfig: NextConfig = {
reactStrictMode: true,
output: 'export',
};
return nextConfig;
}

export default nextConfig;
/**
* @type {import('next').NextConfig}
*/
const nextConfig: NextConfig = {
reactStrictMode: true,
output: 'export',
basePath: '/auto-manufacturers', // GitHub pages
};
return nextConfig;
};

0 comments on commit d66a079

Please sign in to comment.