From aa204243132e9929ff152a76ed1350fce45cf6aa Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Wed, 6 Dec 2023 16:02:05 -0600 Subject: [PATCH] revert changes made while debugging --- next.config.js | 6 +++--- utils/api/base.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index 46de15af..7b855403 100644 --- a/next.config.js +++ b/next.config.js @@ -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 diff --git a/utils/api/base.js b/utils/api/base.js index b79a565d..b16c0ab1 100644 --- a/utils/api/base.js +++ b/utils/api/base.js @@ -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)