From 797b3bbd45b2b4c699787bb5c0a5c86e19a1fd7d Mon Sep 17 00:00:00 2001 From: Geoff Rich <4992896+geoffrich@users.noreply.github.com> Date: Sun, 19 Nov 2023 16:20:44 -0800 Subject: [PATCH] Try adding '/api/*' to SWA config --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index d984241..97c701e 100644 --- a/index.js +++ b/index.js @@ -196,6 +196,9 @@ export function generateConfig(customStaticWebAppConfig, appDir) { ...customStaticWebAppConfig, routes: [ ...customStaticWebAppConfig.routes, + { + route: '/api/*' + }, { route: '*', methods: ['POST', 'PUT', 'DELETE'],