Skip to content
Snippets Groups Projects
Commit 0108d0d7 authored by Minseo Lee's avatar Minseo Lee
Browse files

build: setup proxy for vercel

parent 892360d8
Branches
No related tags found
No related merge requests found
[[redirects]]
from = "/api/*"
to = "https://ajou-eats-api.seunglab.dev/api/:splat"
status = 200
force = true
secure = true
...@@ -5,6 +5,7 @@ module.exports = function (app) { ...@@ -5,6 +5,7 @@ module.exports = function (app) {
createProxyMiddleware('/api', { createProxyMiddleware('/api', {
target: 'https://ajou-eats-api.seunglab.dev', target: 'https://ajou-eats-api.seunglab.dev',
changeOrigin: true, changeOrigin: true,
secure: true
}), }),
); );
}; };
{
"rewrites": [
{
"source": "/api/:path*",
"destination": "https://ajou-eats-api.seunglab.dev/api/:path*"
},
{
"source": "/api/:path*/",
"destination": "https://ajou-eats-api.seunglab.dev/api/:path*/"
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment