Skip to content

Commit

Permalink
revert changes made while debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
alishaevn committed Dec 6, 2023
1 parent 70f318a commit aa20424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const nextConfig = {
// output: 'standalone',
reactStrictMode: true,
swcMinify: true,
// eslint: {
// dirs: ['pages', 'utils'], // Only run ESLint on the 'pages' and 'utils' directories during production builds
// },
eslint: {
dirs: ['pages', 'utils'], // Only run ESLint on the 'pages' and 'utils' directories during production builds
},
sentry: {
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool`
// for client-side builds. (This will be the default starting in
Expand Down
2 changes: 1 addition & 1 deletion utils/api/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const defaultHeaders = (token) => ({ Authorization: `Bearer ${token || process.e
const api = axios.create({ baseURL })

export const fetcher = (url, token) => {
return api.get(url, { headers: `Bearer 1234` })
return api.get(url, { headers: defaultHeaders(token) })
.then(res => res.data)
.catch(error => {
Sentry.captureException(error)
Expand Down

0 comments on commit aa20424

Please sign in to comment.