Skip to content

Commit

Permalink
Teste deploy na vercel - 3 - Back-end.
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSS187 committed Feb 15, 2023
1 parent 44c4fb1 commit 3c0fc4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions back-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "tsup src && node ./dist/index.js",
"start": "node ./dist/index.js",
"dev": "tsx watch src/index.ts",
"build": "tsup-node src",
"build": "tsup src",
"test": "echo \"Error: no test specified\" && exit 1",
"migrate:latest": "ts-node -r dotenv/config ./node_modules/knex/bin/cli.js --knexfile ./src/config/knexfile.ts migrate:latest --migrations-directory ../data/migrations",
"migrate:make": "ts-node -r dotenv/config ./node_modules/knex/bin/cli.js --knexfile ./src/config/knexfile.ts migrate:make --migrations-directory ../data/migrations",
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/Errors/TodoErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export class ErrorTodo extends CustomError {
public error: Record<string, string>,
public statusCode: number
){
super(error, statusCode);
super(JSON.stringify(error), statusCode);
};
};
2 changes: 1 addition & 1 deletion back-end/src/Errors/userErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ export class ErrorUser extends CustomError {
public error: Record<string, string>,
public statusCode: number
){
super(error, statusCode);
super(JSON.stringify(error), statusCode);
};
};

2 comments on commit 3c0fc4e

@vercel
Copy link

@vercel vercel bot commented on 3c0fc4e Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-to-do-list – ./front-end

modern-to-do-list-git-main-gabrielss187.vercel.app
modern-to-do-list-gabrielss187.vercel.app
modern-to-do-list.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3c0fc4e Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.