From b077eae9cff50be3d3b74b8347bb703870d1bd76 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Fri, 26 May 2023 10:05:00 +0800 Subject: [PATCH] fix: allow all api path --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 4cce764e27..fd14989383 100644 --- a/next.config.js +++ b/next.config.js @@ -17,7 +17,7 @@ const nextConfig = { return [ { // matching all API routes - source: '/api/vocechat/:path*', + source: '/api/:path*', headers: [ { key: 'Access-Control-Allow-Credentials', value: 'true' }, { key: 'Access-Control-Allow-Origin', value: '*' },