2022-12-26 03:52:48 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
const nextConfig = {
|
|
|
|
swcMinify: true,
|
|
|
|
output: 'standalone',
|
|
|
|
reactStrictMode: true,
|
2023-08-15 20:53:24 +00:00
|
|
|
transpilePackages: ['@runtipi/shared'],
|
2023-09-01 20:22:27 +00:00
|
|
|
experimental: {
|
|
|
|
serverComponentsExternalPackages: ['bullmq'],
|
2023-09-08 15:19:52 +00:00
|
|
|
serverActions: true,
|
2023-09-01 20:22:27 +00:00
|
|
|
},
|
2022-12-26 03:52:48 +00:00
|
|
|
serverRuntimeConfig: {
|
|
|
|
INTERNAL_IP: process.env.INTERNAL_IP,
|
|
|
|
TIPI_VERSION: process.env.TIPI_VERSION,
|
|
|
|
JWT_SECRET: process.env.JWT_SECRET,
|
|
|
|
POSTGRES_PASSWORD: process.env.POSTGRES_PASSWORD,
|
|
|
|
POSTGRES_USERNAME: process.env.POSTGRES_USERNAME,
|
|
|
|
POSTGRES_DBNAME: process.env.POSTGRES_DBNAME,
|
|
|
|
POSTGRES_HOST: process.env.POSTGRES_HOST,
|
|
|
|
APPS_REPO_ID: process.env.APPS_REPO_ID,
|
|
|
|
APPS_REPO_URL: process.env.APPS_REPO_URL,
|
|
|
|
DOMAIN: process.env.DOMAIN,
|
|
|
|
ARCHITECTURE: process.env.ARCHITECTURE,
|
|
|
|
NODE_ENV: process.env.NODE_ENV,
|
|
|
|
REDIS_HOST: process.env.REDIS_HOST,
|
|
|
|
},
|
2023-09-28 08:08:19 +00:00
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/apps/:id',
|
|
|
|
destination: '/app-store/:id',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
2022-12-26 03:52:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default nextConfig;
|