Comments (6)
Quick update, we're continuing to evaluate SSG/CSR on Managed Runtime but at this time it is not on the committed roadmap.
from pwa-kit.
I wanted to confirm your approach here, as we have done some similar work in the past, but didn't carry that forward into PWA Kit.
Are you looking to take your PWA Kit code and bundle it directly in a hybrid cordova-based native app, which doesn't require any additional downloading of files/assets from PWA Kit and Managed Runtime>? Or are you trying to embed a PWA kit site into a cordova-based webview (say use the existing cart/checkout pages from PWA Kit within a hybrid native app webvview)?
We've done the 2nd approach in the past, but we haven't focused on the 1st approach at all, and that does reflect in the SSR setup and build setup
from pwa-kit.
@nx-andreashabermann tagging you here to make sure you saw my clarification questions. Thank you!
from pwa-kit.
Making assumptions about what you're asking for, if you'd like to use Managed Runtime to host a "vanilla" React client side rendered app, you can use "Hello World" template as a starting point:
https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/hello-world
There is also a experimental version of this template in our upcoming major version:
https://github.com/SalesforceCommerceCloud/pwa-kit/tree/black-friday-hackathon/packages/hello-world
from pwa-kit.
Basically the final goal should be the 1st approach. Using hello-world would mean to start at 0, at least it should be possible to set up nearly anything from that starting point, but the development time will much higher that way.
Here are the problems I got to when trying to use pwa-kit as base implementation with client side code in the hybrid app bundle:
- Routing: would be easier to have hash based routing for this approach
- Proxying/Development setup: The setup for development especially proxying the requests to the apis can make different problems, e.g. CORS and building the proxy server URLs.
- Some Commerce API endpoints do not support OPTIONS requests, so CORS preflight requests will cause errors if they get proxied to these APIs
Clientside rendering itself works as expected, as PWA is a react app.
from pwa-kit.
This issue has been linked to a new work item: W-14515712
from pwa-kit.
Related Issues (20)
- [QUESTION] About optional outputDir HOT 3
- [FEATURE] Normalize `request.ip` and `request.ips` on MRT
- [FEATURE] Add an "echo" endpoint to the default app that responds with the details of the request HOT 2
- [BUG] Cannot read properties of undefined (reading 'unshift') HOT 2
- [FEATURE] Use Cache Control directive `stale-while-revalidate` in default caching headers HOT 1
- [BUG] withReactQuery not getting dependent querys HOT 2
- [BUG] Jest tests throw invalid parameter warning HOT 2
- [BUG] - operation not permitted HOT 1
- [BUG] Support Non-ASCII characters in HTTP Request Header Values HOT 3
- [FEATURE] Add support for hi-res / medium images to image gallery HOT 2
- [BUG] v3.5 - Duplicate subpath in request to get oauth token HOT 1
- [FEATURE] Add Sitemap handling HOT 2
- [FEATURE] Shopper Context Integration
- [BUG]Out of stock products should also be considered as unavailable products and be removed from cart and checkout page HOT 1
- [BUG] Seo component not setting keywords meta tag HOT 3
- [BUG] Cannot use import statement outside a module HOT 10
- [BUG] Missing onContextChange callback for version 2.8 HOT 1
- [FEATURE] Allow multiple MRT environments to share a single domain
- [FEATURE] Support Maintenance Mode 🚧 HOT 1
- [BUG] Custom parameters not taking into account for cache invalidation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwa-kit.