vuestorefront / shopware-pwa

Shopware PWA for eCommerce. Headless storefront solution for Shopware 6, which communicates through the SalesChannel-API. Always Open Source, MIT license. Made with :blue_heart: by shopware AG & Vue Storefront.
https://frontends.shopware.com
MIT License
345 stars 103 forks source link

[FEATURE] Vercel deployment guide #1364

Closed willopez closed 3 years ago

willopez commented 3 years ago

Description

It would be great to have a guide to deploy to vercel.com, similar to the existing guide for Heroku.

Acceptance criteria

willopez commented 3 years ago

I figured out how to deploy to Vercel, it's pretty easy.

Steps:

  1. Add vercel.json with the following contents:
    {
    "builds": [
      {
        "src": "nuxt.config.js",
        "use": "@nuxtjs/vercel-builder",
        "config": {}
      }
    ]
    }
  2. Add the following command to the scripts section of the package.json
    "now-build": "shopware-pwa plugins --ci && shopware-pwa cms && shopware-pwa languages",

and that is all the setup needed.

I can make a PR for the docs sites if you'll want to add these instructions.