experiments with docker packaging, figuring out deploy plan

This commit is contained in:
Amruth Pillai
2022-03-03 09:35:13 +01:00
parent a30011e841
commit 2aa3786f5f
12 changed files with 241 additions and 15 deletions

View File

@ -1,6 +1,4 @@
const withPlugins = require('next-compose-plugins');
const withNx = require('@nrwl/next/plugins/with-nx');
const withBundleAnalyzer = require('@next/bundle-analyzer')({ enabled: process.env.ANALYZE === 'true' });
const { i18n } = require('./next-i18next.config');
@ -50,4 +48,4 @@ const nextConfig = {
},
};
module.exports = withPlugins([withNx, withBundleAnalyzer], nextConfig);
module.exports = withNx(nextConfig);

View File

@ -30,6 +30,11 @@
"executor": "@nrwl/node:execute",
"options": {
"buildTarget": "server:build"
},
"configurations": {
"production": {
"buildTarget": "server:build:production"
}
}
},
"lint": {

View File

@ -19,7 +19,7 @@ const validationSchema = Joi.object({
// Database
POSTGRES_HOST: Joi.string().required(),
POSTGRES_PORT: Joi.string().required(),
POSTGRES_PORT: Joi.string().default(5432),
POSTGRES_USERNAME: Joi.string().required(),
POSTGRES_PASSWORD: Joi.string().required(),
POSTGRES_DATABASE: Joi.string().required(),