runtipi/packages/dashboard/next.config.js
Nicolas Meienberger 78cb3c36ad refactor: replace usage of config with new runtime config
wip: make script executable from everywhere
2022-09-21 22:59:33 +02:00

21 lines
470 B
JavaScript

/** @type {import('next').NextConfig} */
const { INTERNAL_IP, DOMAIN, NGINX_PORT } = process.env;
const nextConfig = {
webpackDevMiddleware: (config) => {
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
};
return config;
},
reactStrictMode: true,
env: {
NEXT_PUBLIC_INTERNAL_IP: INTERNAL_IP,
NEXT_PUBLIC_DOMAIN: DOMAIN,
NEXT_PUBLIC_PORT: NGINX_PORT,
},
basePath: '/dashboard',
};
module.exports = nextConfig;