Skip to content

Commit

Permalink
Try adding '/api/*' to SWA config
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrich committed Nov 20, 2023
1 parent 4befd66 commit 797b3bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export function generateConfig(customStaticWebAppConfig, appDir) {
...customStaticWebAppConfig,
routes: [
...customStaticWebAppConfig.routes,
{
route: '/api/*'
},
{
route: '*',
methods: ['POST', 'PUT', 'DELETE'],
Expand Down

0 comments on commit 797b3bb

Please sign in to comment.