vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.64k stars 2.09k forks source link

feat: make new url constructor in core package able to work with api #6846

Closed bartoszherba closed 1 year ago

bartoszherba commented 1 year ago

Description

Currently, core package is throwing an error Invalid URL when middlewareUrl is set to "/api” .

We need to make it able to work with such a values.

Change is required to be done in packages/core/src/utils/nuxt/_proxyUtils.ts file and it should NOT be a breaking change.

New core version is necessary to be released.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots:

Types of changes

Checklist:

Changelog

Tests

Code standards

Docs