krzysztof.wolowski
krzysztof.wolowski
AAlokai
Created by krzysztof.wolowski on 6/12/2023 in #🙋|general-help
CLI commands
3 replies
AAlokai
Created by krzysztof.wolowski on 6/12/2023 in #🙋|general-help
Local Setup
Hi, guys. I'm trying to set things up according to https://docs.vuestorefront.io/magento/installation-setup/installation.html. Magento is up and running, GraphQL is enabled and working. My .env looks like this:
VSF_NUXT_APP_ENV=development
VSF_NUXT_APP_PORT=3000
VSF_NUXT_APP_HOST=0.0.0.0

VSF_STORE_URL=http://localhost:3000

# Previously VSF_MIDDLEWARE_URL
API_BASE_URL=http://localhost:3000/api/
# Previously VSF_SSR_MIDDLEWARE_URL
API_SSR_BASE_URL=http://localhost:3000/api/

VSF_MAGENTO_BASE_URL=http://vsf-playground.local:41302/
VSF_MAGENTO_GRAPHQL_URL=http://vsf-playground.local:41302/graphql

VSF_MAGENTO_EXTERNAL_CHECKOUT_ENABLED=false
VSF_MAGENTO_EXTERNAL_CHECKOUT_URL=http://vsf-playground.local
VSF_MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH=/vue/cart/sync

NUXT_IMAGE_PROVIDER=ipx
NUXT_IMAGE_PROVIDER_BASE_URL=https://res-4.cloudinary.com/{YOUR_ID}/image/upload/
NUXT_IMAGE_PROVIDER_DOMAIN=https://res-4.cloudinary.com
VSF_NUXT_APP_ENV=development
VSF_NUXT_APP_PORT=3000
VSF_NUXT_APP_HOST=0.0.0.0

VSF_STORE_URL=http://localhost:3000

# Previously VSF_MIDDLEWARE_URL
API_BASE_URL=http://localhost:3000/api/
# Previously VSF_SSR_MIDDLEWARE_URL
API_SSR_BASE_URL=http://localhost:3000/api/

VSF_MAGENTO_BASE_URL=http://vsf-playground.local:41302/
VSF_MAGENTO_GRAPHQL_URL=http://vsf-playground.local:41302/graphql

VSF_MAGENTO_EXTERNAL_CHECKOUT_ENABLED=false
VSF_MAGENTO_EXTERNAL_CHECKOUT_URL=http://vsf-playground.local
VSF_MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH=/vue/cart/sync

NUXT_IMAGE_PROVIDER=ipx
NUXT_IMAGE_PROVIDER_BASE_URL=https://res-4.cloudinary.com/{YOUR_ID}/image/upload/
NUXT_IMAGE_PROVIDER_DOMAIN=https://res-4.cloudinary.com
I'm getting several TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:" error messages when opening http://localhost:3000 in the browser. I'm not sure if the two are related, but there are 500 Internal Server Error messages for http://localhost:3000/ and http://localhost:3000/api/magento/customQuery.
10 replies