fix local storage upload of photo/avatar

This commit is contained in:
Amruth Pillai
2022-08-29 20:44:07 +02:00
parent 17019e446b
commit 049de38da2
8 changed files with 106 additions and 88 deletions

View File

@ -6,4 +6,5 @@ export default registerAs('app', () => ({
secretKey: process.env.SECRET_KEY,
port: parseInt(process.env.PORT, 10) || 3100,
url: process.env.PUBLIC_URL || 'http://localhost:3000',
serverUrl: process.env.PUBLIC_SERVER_URL || 'http://localhost:3100',
}));

View File

@ -18,6 +18,7 @@ const validationSchema = Joi.object({
// URLs
PUBLIC_URL: Joi.string().default('http://localhost:3000'),
PUBLIC_SERVER_URL: Joi.string().default('http://localhost:3100'),
// Database
POSTGRES_HOST: Joi.string().required(),