Skip to content

Commit

Permalink
chore: remove console log in production (#18)
Browse files Browse the repository at this point in the history
## Description

- Removed console logs in production mode. console.errors will still be
displayed
- Deleted unused API call

Closes: #XXXX

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
  in the PR title
- [ ] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the
correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed all author checklist items have been addressed
  • Loading branch information
Alessandro Mazzon authored Oct 6, 2023
1 parent 9094a14 commit 8fe291f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DefaultSEO from "../../seo";
import DefaultSEO from "../../../seo";
import Script from "next/script";

export const metadata = {
Expand Down
35 changes: 0 additions & 35 deletions app/services/axios/requests/GetPlaceDetailsByPlaceId/index.ts

This file was deleted.

4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const nextConfig = {
},
],
},
compiler: {
removeConsole:
process.env.NODE_ENV === "production" ? { exclude: ["error"] } : false,
},
};

module.exports = nextConfig;

0 comments on commit 8fe291f

Please sign in to comment.