Initial commit - frontend
This commit is contained in:
31
next.config.ts
Normal file
31
next.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { NextConfig } from 'next';
|
||||
import path from 'path';
|
||||
|
||||
const dev = process.env.NODE_ENV !== 'production';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
distDir: dev ? '.next-dev' : '.next',
|
||||
|
||||
env: {
|
||||
NEXT_PUBLIC_API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL,
|
||||
},
|
||||
|
||||
allowedDevOrigins: [
|
||||
'http://localhost:3000',
|
||||
'http://172.16.10.180:3000',
|
||||
'https://dev.psg.net.au',
|
||||
],
|
||||
|
||||
productionBrowserSourceMaps: false,
|
||||
|
||||
webpack(config) {
|
||||
config.resolve.alias['@'] = path.resolve(__dirname, 'src');
|
||||
return config;
|
||||
},
|
||||
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user