Skip to content

Commit

Permalink
feat(config) : proxy server setting
Browse files Browse the repository at this point in the history
  • Loading branch information
최현우 committed Dec 13, 2023
1 parent 63e080e commit 31734e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
/** @type {import('next').NextConfig} */

const nextConfig = {
async rewrites() {
return [
{
source: "/",
destination:
"http://be-be-c957f-21216619-aeb7ba37580c.kr.lb.naverncp.com/",
},
];
},

images: {
domains: ["images.pexels.com"],
},
Expand Down
5 changes: 3 additions & 2 deletions utils/api/AxiosSetting.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import axios from "axios";

const instacne = axios.create({
baseURL: process.env.NEXT_PUBLIC_API_URL,
// baseURL: process.env.NEXT_PUBLIC_API_URL,
baseURL: "/",
withCredentials: true,
});

export const getUserInfo = async () => {
console.log(process.env.NEXT_PUBLIC_API_URL);
const res = await instacne.get("");
const res = await instacne.get("/123");

console.log(res);
return res;
Expand Down

0 comments on commit 31734e5

Please sign in to comment.