Skip to content

Commit

Permalink
fix: allow root of content path(s) to be proxied
Browse files Browse the repository at this point in the history
This fix allows the root of the provide content path(s) to be proxied along with child pages
  • Loading branch information
cshawaus committed Aug 16, 2022
1 parent 4d0df09 commit d467370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function viteForAem(options: PluginOptions): PluginOption[] {
strictPort: true,

proxy: {
[`^/content/(${options.contentPaths.join('|')})/.*`]: {
[`^/content/(${options.contentPaths.join('|')})(/.*)?`]: {
...baseProxyOptions,
protocolRewrite: 'http',
selfHandleResponse: true,
Expand Down

0 comments on commit d467370

Please sign in to comment.