Magento 2 Canva ConnectorMagento 2 Canva Connector
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Requirements
    • Installation
    • Activate & Connect
  • Canva Developer Portal

    • Setup Overview
    • Canva App (Sidebar UI)
    • Canva Connect REST API
  • Configuration

    • Overview
    • General Settings
    • Product Image Import Settings
    • Frontend App & API Endpoints
  • Frontend Node Service

    • Installation & Setup
  • Design Workflow

    • Workflow Overview
    • Launch from Product Grid
    • Canva In-Editor Side Panel
    • Export & Save to Magento
  • API Reference

    • REST Web APIs
  • Help

    • Troubleshooting
    • FAQ

Canva App Frontend & API Configuration

The Canva App Frontend & API Configuration section connects Magento with the canva-app-frontend Node.js service and manages API endpoints and automatic .env synchronization.


Settings Reference

FieldTypeDefaultDescription
Canva Frontend App Server PathTextEmptyAbsolute server filesystem path where canva-app-frontend is installed (e.g. /var/www/html/canva-app-frontend).
Magento Backend Base URLTextStore Base URLBase URL used by the frontend app to call Magento REST Web APIs.
Frontend Service PortText8083Local or container port where the frontend webpack dev server runs.
Backend / Node PortText3001Communication port for Node backend proxy (if applicable).
Canva App OriginTextAuto-calculatedAllowed origin URL for Canva iframes (e.g. https://app-<app-id>.canva-apps.com).
Enable HMRSelect (Yes / No)YesEnables Webpack Hot Module Replacement for live frontend development.
Product Catalog API EndpointText/rest/V1/canva/productsREST endpoint for paginated product search & catalog retrieval.
Active Product Context EndpointText/rest/V1/canva/contextREST endpoint for fetching active product context based on design token.
Design Save / Export EndpointText/rest/V1/canva/export/saveREST endpoint for saving exported design image data to product gallery.

Canva App Frontend and API Configuration in Magento Admin


Automated .env Synchronization

When you enter the Canva Frontend App Server Path and click Save Config, Magento's backend validator model (Webkul\CanvaConnector\Model\Config\Backend\NodeAppPath) performs the following tasks:

  1. Validates that the provided path exists and is writable.
  2. Formats all environment parameters into key-value pairs.
  3. Automatically creates or updates the .env file in the frontend root directory:
# Auto-generated by Magento 2 Canva Connector
CANVA_APP_ID=your_canva_app_id
CANVA_FRONTEND_PORT=8083
CANVA_BACKEND_PORT=3001
CANVA_APP_ORIGIN=https://app-your_canva_app_id.canva-apps.com
CANVA_HMR_ENABLED=true
MAGENTO_BASE_URL=https://your-magento-domain.com
API_ENDPOINT_PRODUCTS=/rest/V1/canva/products
API_ENDPOINT_CONTEXT=/rest/V1/canva/context
API_ENDPOINT_SAVE=/rest/V1/canva/export/save

No Manual File Editing Needed

Whenever you update endpoints, ports, or domain URLs in Magento Admin, simply click Save Config to immediately push the new configuration to the Node.js frontend.

Prev
Product Image Import Settings