console/packages/web/app/next.config.mts
Dimitri POSTOLOV 12ceda69dc
Use pnpm instead of yarn (#477)
Co-authored-by: enisdenjo <badurinadenis@gmail.com>
Co-authored-by: Denis Badurina <denis@domonda.com>
2022-11-01 02:11:53 +02:00

27 lines
753 B
TypeScript

// For the dev server we want to make sure that the correct environment variables are set :)
// during build we don't need environment variables!
if (globalThis.process.env.BUILD !== '1') {
await import('./environment');
}
export default {
poweredByHeader: false,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
// next doesn't need to check because typecheck command will
// also next reports false positives (try it...)
ignoreBuildErrors: true,
},
redirects: () => [
// Redirect organization routes
{
source: '/:orgId/subscription/manage',
destination: '/:orgId/subscription',
permanent: true,
},
],
};