mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
26 lines
567 B
JavaScript
26 lines
567 B
JavaScript
const rewrites = async () => {
|
|
if (process.env.NODE_ENV === 'production') {
|
|
return [];
|
|
}
|
|
return [
|
|
{ source: '/api/query/', destination: `${process.env.HYPERGLASS_URL}api/query/` },
|
|
{ source: '/images/:image*', destination: `${process.env.HYPERGLASS_URL}images/:image*` },
|
|
];
|
|
};
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
swcMinify: true,
|
|
productionBrowserSourceMaps: true,
|
|
rewrites,
|
|
};
|
|
|
|
module.exports = nextConfig;
|