vuestorefront / shopify

Vue Storefront 2 integration for Shopify
https://docs.vuestorefront.io/shopify
MIT License
150 stars 84 forks source link

Deploying to SSR configuration - help required #385

Closed rrubio closed 1 year ago

rrubio commented 1 year ago

Provide a description of requested docs changes

Hi Guys,

I'm able to run the application locally by using "yarn dev".

When trying to deploy to firebase using SSR but not having much luck. I've added "server-middleware" folder and "middleware.config.js". Though i'm not sure if this is correct, there isn't much documentation on this process.

I've previously deployed to firebase using the same method (plain nuxtjs project), however, it appears i'm missing something for vuestorefront. Any tips are much appreciated.

This is the example i followed for a previous project which worked - https://medium.com/@sirofjelly/deploying-a-nuxt-ssr-server-side-rendering-app-to-google-firebase-5d90117167db

Able to fix / change the documentation?

Code of Conduct

rrubio commented 1 year ago

It appears that the issue is on the build itself. Another error that popped up was around "@glidejs/glide" not able to import, i got this working by adding it to nuxt.config file on transpile.

However, i'm now getting other errors see below (This must be called within a setup function). The error is consistent across node 14.21.1 and 16.16.0. Any tips would be much appreciated.

Glidejs error fixed by adding to transpile under "nuxt.config" file -

Screenshot 2023-04-30 at 5 32 29 pm

This error occurs when using "yarn dev" and "yarn start" -

Screenshot 2023-04-30 at 5 32 11 pm

skirianov commented 1 year ago

Hi @rrubio 👋

Vue Storefront does not support firebase as a hosting platform, due to the nature of the Firebase architecture. Vue Storefront application comes with 2 appications - Nuxt and Middleware and Middleware should always run, though Firebase does not have this functionality.

Please take a look at Digital Ocean, Heroku or any other providers like AWS Lightsail

rrubio commented 1 year ago

Thank you @skirianov. Ended up using google cloud run.