mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
25 lines
608 B
JavaScript
25 lines
608 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
swcMinify: true,
|
|
productionBrowserSourceMaps: true,
|
|
};
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
nextConfig.output = 'export';
|
|
}
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
nextConfig.rewrites = async () => [
|
|
{ source: '/api/query', destination: `${process.env.HYPERGLASS_URL}api/query` },
|
|
{ source: '/images/:image*', destination: `${process.env.HYPERGLASS_URL}images/:image*` },
|
|
];
|
|
}
|
|
|
|
module.exports = nextConfig;
|